diff options
| author | 2022-11-30 20:40:45 +0000 | |
|---|---|---|
| committer | 2022-11-30 20:40:45 +0000 | |
| commit | 97201322ec9f269fff0ffedd6334370b03d56682 (patch) | |
| tree | ab4f6bf5e161a26905d4f84277e7b4ac9c27cbe0 /src/clientprotocol.cpp | |
| parent | Add a method for quickly escaping a tag value. (diff) | |
Fix using C++11 features in code that was backported from master.
Diffstat (limited to 'src/clientprotocol.cpp')
| -rw-r--r-- | src/clientprotocol.cpp | 3 |
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 ' ': |
