aboutsummaryrefslogtreecommitdiffstats
path: root/src/clientprotocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/clientprotocol.cpp')
-rw-r--r--src/clientprotocol.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clientprotocol.cpp b/src/clientprotocol.cpp
index 9a669d12b..553531840 100644
--- a/src/clientprotocol.cpp
+++ b/src/clientprotocol.cpp
@@ -73,8 +73,9 @@ std::string ClientProtocol::Message::EscapeTag(const std::string& value)
{
std::string ret;
ret.reserve(value.size());
- for (const char& chr : value)
+ for (std::string::const_iterator it = value.begin(); it != value.end(); ++it)
{
+ const char chr = *it;
switch (chr)
{
case ' ':