diff options
author | frosch <frosch@openttd.org> | 2012-06-04 15:30:29 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-06-04 15:30:29 +0000 |
commit | d58eee1e7945098f32e2d4419506ce1a81f3e4d6 (patch) | |
tree | d5b61295290e921e8dff31d1bd73d149c84c113a /src/signs_gui.cpp | |
parent | 31eb896143ca5a38c0dc7355921393f357c5a383 (diff) | |
download | openttd-d58eee1e7945098f32e2d4419506ce1a81f3e4d6.tar.xz |
(svn r24324) -Codechange: Turn functions dealing with Textbufs into member functions.
Diffstat (limited to 'src/signs_gui.cpp')
-rw-r--r-- | src/signs_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp index 91004f7ae..55a527136 100644 --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -167,7 +167,7 @@ struct SignListWindow : QueryStringBaseWindow, SignList { /* Initialize the text edit widget */ this->afilter = CS_ALPHANUMERAL; - InitializeTextBuffer(&this->text, this->edit_str_buf, MAX_LENGTH_SIGN_NAME_CHARS * MAX_CHAR_LENGTH, MAX_LENGTH_SIGN_NAME_CHARS); + this->text.Initialize(this->edit_str_buf, MAX_LENGTH_SIGN_NAME_CHARS * MAX_CHAR_LENGTH, MAX_LENGTH_SIGN_NAME_CHARS); ClearFilterTextWidget(); /* Initialize the filtering variables */ @@ -186,7 +186,7 @@ struct SignListWindow : QueryStringBaseWindow, SignList { void ClearFilterTextWidget() { this->edit_str_buf[0] = '\0'; - UpdateTextBufferSize(&this->text); + this->text.UpdateSize(); this->SetWidgetDirty(WID_SIL_FILTER_TEXT); } @@ -500,7 +500,7 @@ struct SignWindow : QueryStringBaseWindow, SignList { *last_of = '\0'; this->cur_sign = si->index; - InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, this->max_chars); + this->text.Initialize(this->edit_str_buf, this->edit_str_size, this->max_chars); this->SetWidgetDirty(WID_QES_TEXT); this->SetFocusedWidget(WID_QES_TEXT); |