From 3a9398d853caf39778771d4916b0781a8597db42 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 6 Dec 2012 22:05:56 +0300 Subject: Fix compilation warnings. --- src/gui/chatwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index c0258eade..638d7f81c 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -1410,7 +1410,7 @@ void ChatWindow::resortChatLog(std::string line, Own own, return; } - const size_t idx2 = line.find(": "); + size_t idx2 = line.find(": "); if (idx2 != std::string::npos) { const size_t idx = line.find(": \302\202"); @@ -1428,7 +1428,7 @@ void ChatWindow::resortChatLog(std::string line, Own own, const size_t idx1 = line.find("@@"); if (idx1 != std::string::npos) { - const size_t idx2 = line.find("|", idx1); + idx2 = line.find("|", idx1); if (idx2 != std::string::npos) { const size_t idx3 = line.find("@@", idx2); -- cgit v1.2.3-60-g2f50