diff options
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 2 |
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) |