diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-01-16 19:52:20 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-01-16 20:43:12 +0200 |
commit | 20b16ddf053733271f8cf0966f2a5c5b6ac2a8a1 (patch) | |
tree | 43769767f45b9e46f373db470309bb71a3d05483 /indra/llcommon/llstring.h | |
parent | b34d209abc11f44349c6898ce0020e0d819109cc (diff) |
MacOS Build fix
Diffstat (limited to 'indra/llcommon/llstring.h')
-rw-r--r-- | indra/llcommon/llstring.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcommon/llstring.h b/indra/llcommon/llstring.h index 7ba5c8c241..1fd6cac14a 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 const S8 c : str) + for (typename string_type::const_iterator ci(str.begin()), cend(str.end()); ci != cend; ++ci) { - if (c == '"') + if (*ci == '"') { result.append(escape); } - result.push_back(c); + result.push_back(*ci); } result.push_back('"'); return result; |