Skip to content
Snippets Groups Projects
Commit de77dc3e authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

MacOS Build fix

parent bea93007
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -1668,13 +1668,13 @@ std::basic_string<T> LLStringUtilBase<T>::quote(const string_type& str, ...@@ -1668,13 +1668,13 @@ std::basic_string<T> LLStringUtilBase<T>::quote(const string_type& str,
// For whatever reason, we must quote this string. // For whatever reason, we must quote this string.
string_type result; string_type result;
result.push_back('"'); 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.append(escape);
} }
result.push_back(c); result.push_back(*ci);
} }
result.push_back('"'); result.push_back('"');
return result; return result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment