Skip to content

Commit

Permalink
and gcc too, because why should its documentation be clear and accurate?
Browse files Browse the repository at this point in the history
  • Loading branch information
db48x committed Sep 19, 2024
1 parent 2452e49 commit eacf3d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/main_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ class demo_ui : public cataimgui::window

demo_ui::demo_ui() : cataimgui::window( _( "ImGui Demo Screen" ) )
{
// NOLINTBEGIN(cata-text-style)
// char *text = "Some long text that will wrap around nicely. </color><color_green><color_red>Some red text in the </color>middle.</color> Some long text that will <color_light_blue_yellow>wrap around nicely.";
std::string text =
"Some long text that will wrap around nicely. <color_red>Some red text in the middle.</color> Some long text that will wrap around nicely.";
stuff = std::shared_ptr<cataimgui::Paragraph>( new cataimgui::Paragraph() );
// NOLINTEND(cata-text-style)
stuff = std::make_shared<cataimgui::Paragraph>();
stuff->append_colored_text( text, c_white );
}

Expand Down
2 changes: 1 addition & 1 deletion src/third-party/imgui/imgui.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Index of this file:
#pragma once
// NOLINTBEGIN
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Werror=old-style-cast"
#pragma GCC diagnostic ignored "-Wold-style-cast"

// Configuration file with compile-time options
// (edit imconfig.h or '#define IMGUI_USER_CONFIG "myfilename.h" from your build system')
Expand Down
2 changes: 1 addition & 1 deletion src/third-party/imgui/imgui_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Index of this file:
#pragma once
// NOLINTBEGIN
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Werror=old-style-cast"
#pragma GCC diagnostic ignored "-Wold-style-cast"

#ifndef IMGUI_DISABLE

Expand Down

0 comments on commit eacf3d8

Please sign in to comment.