From 009b8bb6528cd3380474dc5ba29903c55c8f6fef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 27 Jul 2015 23:59:02 +0300 Subject: Fix compilation warnings. --- src/gui/windows/chatwindow.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/gui/windows/chatwindow.cpp') diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index b292d20f1..c55662eb6 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -1553,17 +1553,17 @@ bool ChatWindow::resortChatLog(std::string line, size_t idx2 = line.find(": "); if (idx2 != std::string::npos) { - std::string nick = line.substr(0, idx2); - if (nick.find("#") != std::string::npos || - nick.find(":") != std::string::npos || - nick.find("%") != std::string::npos || - nick.find("@") != std::string::npos) + std::string tmpNick = line.substr(0, idx2); + if (tmpNick.find("#") != std::string::npos || + tmpNick.find(":") != std::string::npos || + tmpNick.find("%") != std::string::npos || + tmpNick.find("@") != std::string::npos) { - replaceAll(nick, "#", "_"); - replaceAll(nick, "%", "_"); + replaceAll(tmpNick, "#", "_"); + replaceAll(tmpNick, "%", "_"); const std::string errMsg = strprintf( // TRANSLATORS: error message - _("Broken nick detected: %s"), nick.c_str()); + _("Broken nick detected: %s"), tmpNick.c_str()); if (debugChatTab) debugChatTab->chatLog(errMsg, ChatMsgType::BY_SERVER); else -- cgit v1.2.3-60-g2f50