@@ -966,7 +966,7 @@ class Property {
966966 return default_value;
967967 }
968968
969- if (std::holds_alternative<T>(it->second ) == false ) {
969+ if (! std::holds_alternative<T>(it->second )) {
970970 return default_value; // TODO: log error
971971 }
972972 return std::get<T>(it->second );
@@ -1208,7 +1208,7 @@ class Font : public SignalEmitter {
12081208
12091209 void render (const std::u32string_view& text, int x, int y)
12101210 {
1211- for (auto & ch : text) {
1211+ for (const auto & ch : text) {
12121212 char32_t index;
12131213 if (ch <= 127 )
12141214 index = ch;
@@ -3174,7 +3174,7 @@ int set_draw_color(SDL_Renderer* renderer, const SDL_Color& color)
31743174struct SDLConsole_pshare {
31753175 Property props;
31763176 std::weak_ptr<SDLConsole_impl> impl_weak;
3177- std::thread::id render_thread_id{} ;
3177+ std::thread::id render_thread_id;
31783178};
31793179
31803180class SDLConsole_impl : public std ::enable_shared_from_this<SDLConsole_impl> {
@@ -3216,7 +3216,7 @@ class SDLConsole_impl : public std::enable_shared_from_this<SDLConsole_impl> {
32163216#endif
32173217
32183218 OutputPane& outpane () {
3219- return *main_window.outpane . get () ;
3219+ return *main_window.outpane ;
32203220 }
32213221
32223222 bool sdl_event_hook (SDL_Event& e)
@@ -3287,7 +3287,7 @@ class SDLConsole_impl : public std::enable_shared_from_this<SDLConsole_impl> {
32873287 }
32883288};
32893289
3290- SDLConsole::SDLConsole () : state()
3290+ SDLConsole::SDLConsole ()
32913291{
32923292 pshare = std::make_unique<SDLConsole_pshare>();
32933293 state.set_state (State::inactive);
@@ -3305,7 +3305,7 @@ bool SDLConsole::init()
33053305 if (state.is_failed ()) return false ;
33063306 if (!state.is_inactive ()) return true ;
33073307 bool success = true ;
3308- // std::cerr << "SDLConsole: init() from thread: " << std::this_thread::get_id() << std::endl;
3308+ std::cerr << " SDLConsole: init() from thread: " << std::this_thread::get_id () << std::endl;
33093309 pshare->render_thread_id = std::this_thread::get_id ();
33103310 try {
33113311 bind_sdl_symbols ();
0 commit comments