From d58eee1e7945098f32e2d4419506ce1a81f3e4d6 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 4 Jun 2012 15:30:29 +0000 Subject: (svn r24324) -Codechange: Turn functions dealing with Textbufs into member functions. --- src/network/network_chat_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/network/network_chat_gui.cpp') diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp index 5709386e3..9709bf263 100644 --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -300,7 +300,7 @@ struct NetworkChatWindow : public QueryStringBaseWindow { this->dtype = type; this->dest = dest; 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); static const StringID chat_captions[] = { STR_NETWORK_CHAT_ALL_CAPTION, @@ -442,7 +442,7 @@ struct NetworkChatWindow : public QueryStringBaseWindow { } /* Update the textbuffer */ - UpdateTextBufferSize(&this->text); + this->text.UpdateSize(); this->SetDirty(); free(pre_buf); @@ -456,7 +456,7 @@ struct NetworkChatWindow : public QueryStringBaseWindow { _chat_tab_completion_active = false; /* Update the textbuffer */ - UpdateTextBufferSize(&this->text); + this->text.UpdateSize(); this->SetDirty(); } -- cgit v1.2.3-54-g00ecf