diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-11 21:08:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-11 21:08:02 +0300 |
commit | aef5053e87c93a8987f89e4fdaf6cf3dd23efe81 (patch) | |
tree | 1114d14958b13eba28a51e57722d6c4da0b9d2e7 /src/gui/windows/chatwindow.cpp | |
parent | a50ecdf6045ba0f0d5e91d10ddeb8d5520ba55cb (diff) | |
download | manaverse-aef5053e87c93a8987f89e4fdaf6cf3dd23efe81.tar.gz manaverse-aef5053e87c93a8987f89e4fdaf6cf3dd23efe81.tar.bz2 manaverse-aef5053e87c93a8987f89e4fdaf6cf3dd23efe81.tar.xz manaverse-aef5053e87c93a8987f89e4fdaf6cf3dd23efe81.zip |
fix code style.
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index c3a3569f7..be2daf6a9 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -1021,7 +1021,7 @@ void ChatWindow::processEvent(const Channels channel, void ChatWindow::addInputText(const std::string &text, const bool space) { const int caretPos = mChatInput->getCaretPosition(); - const std::string inputText = mChatInput->getText(); + const std::string &inputText = mChatInput->getText(); std::ostringstream ss; ss << inputText.substr(0, caretPos) << text; @@ -1275,7 +1275,7 @@ void ChatWindow::autoComplete() { const int caretPos = mChatInput->getCaretPosition(); int startName = 0; - const std::string inputText = mChatInput->getText(); + const std::string &inputText = mChatInput->getText(); std::string name = inputText.substr(0, caretPos); for (int f = caretPos - 1; f > -1; f --) @@ -1643,7 +1643,7 @@ void ChatWindow::updateOnline(std::set<std::string> &onlinePlayers) const } else { - const std::string nick = tab->getNick(); + const std::string &nick = tab->getNick(); if (actorManager) { const Being *const being = actorManager->findBeingByName( |