1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

UTF32 build fix.

This commit is contained in:
jules 2014-07-07 17:41:14 +01:00
parent 95f536383f
commit 8bbe42c4e2

View file

@ -629,11 +629,11 @@ struct CppTokeniserFunctions
@see writeEscapeChars
*/
static String addEscapeChars (StringRef s)
static String addEscapeChars (const String& s)
{
MemoryOutputStream out;
writeEscapeChars (out, s.text, -1, -1, false, true, true);
return out.toUTF8();
MemoryOutputStream mo;
writeEscapeChars (mo, s.toRawUTF8(), -1, -1, false, true, true);
return mo.toString();
}
};