summaryrefslogtreecommitdiff
path: root/src/gui/chatwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-06 22:05:56 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-06 22:05:56 +0300
commit3a9398d853caf39778771d4916b0781a8597db42 (patch)
treec1f9982355a505963cf7e011a8e1f374dc88fbfa /src/gui/chatwindow.cpp
parentad02b24b25f565a274ff8ec8408acefc1c232e12 (diff)
downloadmv-3a9398d853caf39778771d4916b0781a8597db42.tar.gz
mv-3a9398d853caf39778771d4916b0781a8597db42.tar.bz2
mv-3a9398d853caf39778771d4916b0781a8597db42.tar.xz
mv-3a9398d853caf39778771d4916b0781a8597db42.zip
Fix compilation warnings.
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r--src/gui/chatwindow.cpp4
1 files changed, 2 insertions, 2 deletions
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);