summaryrefslogtreecommitdiff
path: root/src/network/network_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-06-04 15:30:29 +0000
committerfrosch <frosch@openttd.org>2012-06-04 15:30:29 +0000
commitd58eee1e7945098f32e2d4419506ce1a81f3e4d6 (patch)
treed5b61295290e921e8dff31d1bd73d149c84c113a /src/network/network_gui.cpp
parent31eb896143ca5a38c0dc7355921393f357c5a383 (diff)
downloadopenttd-d58eee1e7945098f32e2d4419506ce1a81f3e4d6.tar.xz
(svn r24324) -Codechange: Turn functions dealing with Textbufs into member functions.
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r--src/network/network_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 151776d74..b5e04d828 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -447,7 +447,7 @@ public:
ttd_strlcpy(this->edit_str_buf, _settings_client.network.client_name, this->edit_str_size);
this->afilter = CS_ALPHANUMERAL;
- InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, 120);
+ this->text.Initialize(this->edit_str_buf, this->edit_str_size, 120);
this->SetFocusedWidget(WID_NG_CLIENT);
this->field = WID_NG_CLIENT;
@@ -1019,7 +1019,7 @@ struct NetworkStartServerWindow : public QueryStringBaseWindow {
ttd_strlcpy(this->edit_str_buf, _settings_client.network.server_name, this->edit_str_size);
this->afilter = CS_ALPHANUMERAL;
- InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, 160);
+ this->text.Initialize(this->edit_str_buf, this->edit_str_size, 160);
this->SetFocusedWidget(WID_NSS_GAMENAME);
this->field = WID_NSS_GAMENAME;
@@ -2142,7 +2142,7 @@ struct NetworkCompanyPasswordWindow : public QueryStringBaseWindow {
this->parent = parent;
this->afilter = CS_ALPHANUMERAL;
- InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size);
+ this->text.Initialize(this->edit_str_buf, this->edit_str_size);
this->SetFocusedWidget(WID_NCP_PASSWORD);
}