mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-24 20:54:08 +01:00
Codechange: return std::string_view for Textbuf::GetText()
This commit is contained in:
@@ -2540,7 +2540,7 @@ EventState Window::HandleEditBoxKey(WidgetID wid, char32_t key, uint16_t keycode
|
||||
break;
|
||||
|
||||
case QueryString::ACTION_CLEAR:
|
||||
if (StrEmpty(query->text.GetText())) {
|
||||
if (query->text.GetText().empty()) {
|
||||
/* If already empty, unfocus instead */
|
||||
this->UnfocusFocusedWidget();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user