From 97201322ec9f269fff0ffedd6334370b03d56682 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 30 Nov 2022 20:40:45 +0000 Subject: Fix using C++11 features in code that was backported from master. --- src/clientprotocol.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/clientprotocol.cpp') 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 ' ': -- cgit v1.3.1-10-gc9f91