From 8963c582f2d2f2879b69821337a5c396f9712a06 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 20 Jun 2014 17:42:33 +0300 Subject: Fix code style. --- src/gui/windows/chatwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/windows/chatwindow.cpp') 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) -- cgit v1.2.3-60-g2f50