summaryrefslogtreecommitdiff
path: root/src/gui/windows/chatwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-20 17:42:33 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-20 21:11:13 +0300
commit8963c582f2d2f2879b69821337a5c396f9712a06 (patch)
tree9cc8f89e3116bb09ad3f4a30f7552fad6e83fe57 /src/gui/windows/chatwindow.cpp
parent65f5f9343a75a5adabdf840db93106cda71c703f (diff)
downloadmanaverse-8963c582f2d2f2879b69821337a5c396f9712a06.tar.gz
manaverse-8963c582f2d2f2879b69821337a5c396f9712a06.tar.bz2
manaverse-8963c582f2d2f2879b69821337a5c396f9712a06.tar.xz
manaverse-8963c582f2d2f2879b69821337a5c396f9712a06.zip
Fix code style.
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r--src/gui/windows/chatwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index d1d9370a1..776ad9501 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -897,7 +897,7 @@ void ChatWindow::keyPressed(KeyEvent &event)
bool ChatWindow::addCurrentToHistory()
{
- const std::string str = mChatInput->getText();
+ const std::string &str = mChatInput->getText();
if (str.empty())
return false;
FOR_EACH (HistoryIterator, it, mHistory)