summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-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);