summaryrefslogtreecommitdiff
path: root/indra/llcommon/llstring.h
diff options
context:
space:
mode:
authorFawrsk <fawrsk@gmail.com>2023-01-07 00:38:12 -0400
committerFawrsk <fawrsk@gmail.com>2023-01-07 00:38:12 -0400
commit9e743c99fb69db5694c388ae33656c62e3fa0b8e (patch)
treec981c998d0439d8bd48ce98123c19de8a9a27753 /indra/llcommon/llstring.h
parentd0f115ae093e8268da2a3245d6cb2f3bcc544f1c (diff)
Cleanup for loops in llcommon to use C++11 range based for loops
Diffstat (limited to 'indra/llcommon/llstring.h')
-rw-r--r--indra/llcommon/llstring.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcommon/llstring.h b/indra/llcommon/llstring.h
index 1fd6cac14a..7ba5c8c241 100644
--- a/indra/llcommon/llstring.h
+++ b/indra/llcommon/llstring.h
@@ -1668,13 +1668,13 @@ std::basic_string<T> LLStringUtilBase<T>::quote(const string_type& str,
// For whatever reason, we must quote this string.
string_type result;
result.push_back('"');
- for (typename string_type::const_iterator ci(str.begin()), cend(str.end()); ci != cend; ++ci)
+ for (typename const S8 c : str)
{
- if (*ci == '"')
+ if (c == '"')
{
result.append(escape);
}
- result.push_back(*ci);
+ result.push_back(c);
}
result.push_back('"');
return result;