From 0485292fb4acd649f5918d9329b5b3c21a7ce17f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Constantin?= Date: Sat, 22 Feb 2025 12:18:19 -0500 Subject: [PATCH] Code review --- src/fheroes2/dialog/dialog_selectfile.cpp | 2 +- src/fheroes2/gui/ui_text.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fheroes2/dialog/dialog_selectfile.cpp b/src/fheroes2/dialog/dialog_selectfile.cpp index d0b003629b..b5387188b1 100644 --- a/src/fheroes2/dialog/dialog_selectfile.cpp +++ b/src/fheroes2/dialog/dialog_selectfile.cpp @@ -371,7 +371,7 @@ namespace }; listbox.Redraw(); - fheroes2::TextInput textInput( filename, fheroes2::FontType::normalWhite() ); + fheroes2::TextInput textInput; redrawTextInputField( textInput, filename, textInputRoi, 0, isEditing ); const fheroes2::Text title( header, fheroes2::FontType::normalYellow() ); diff --git a/src/fheroes2/gui/ui_text.cpp b/src/fheroes2/gui/ui_text.cpp index bd1494291f..59282447dc 100644 --- a/src/fheroes2/gui/ui_text.cpp +++ b/src/fheroes2/gui/ui_text.cpp @@ -393,7 +393,6 @@ namespace fheroes2 // If some characters were deleted and we have space for new characters. int32_t currentWidth = getLineWidth( reinterpret_cast( _text.data() + _textOffset ), static_cast( _text.size() - _textOffset ), charHandler, true ); - ; const uint8_t * textData = reinterpret_cast( _text.data() ); while ( _textOffset > 0 ) {