diff options
author | frosch <frosch@openttd.org> | 2012-11-14 22:50:21 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-14 22:50:21 +0000 |
commit | 6653ac6b362cf88a6b77a4e8dd3c6926885c6b5f (patch) | |
tree | 390b2ccf0ad8f69cd6682320ebdbcbdda0ae31ce /src/signs_gui.cpp | |
parent | f6d4200f86e93828a4a58a957d6ae7d9d5497a86 (diff) | |
download | openttd-6653ac6b362cf88a6b77a4e8dd3c6926885c6b5f.tar.xz |
(svn r24739) -Codechange: Simplify some code by using Textbuf::Assign.
Diffstat (limited to 'src/signs_gui.cpp')
-rw-r--r-- | src/signs_gui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp index 09739e6f5..0e2567dcb 100644 --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -175,8 +175,7 @@ struct SignListWindow : QueryStringBaseWindow, SignList { */ void ClearFilterTextWidget() { - this->edit_str_buf[0] = '\0'; - this->text.UpdateSize(); + this->text.DeleteAll(); this->SetWidgetDirty(WID_SIL_FILTER_TEXT); } |