(svn r24324) -Codechange: Turn functions dealing with Textbufs into member functions.

This commit is contained in:
frosch
2012-06-04 15:30:29 +00:00
parent 755b52dcc0
commit 9b196d0fb4
14 changed files with 129 additions and 134 deletions

View File

@@ -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();
}