Use QLatin1 QStringConverter methods

Change-Id: Ie28168250f3cd2a6ffe83f5ed783a1c21b754ee2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Ahmad Samir 2022-12-22 11:08:12 +02:00
parent 04ac810ed0
commit 9b8e3eeb59
1 changed files with 1 additions and 3 deletions

View File

@ -211,9 +211,7 @@ namespace {
}
QChar *write(QChar *out, QLatin1StringView v)
{
for (char ch : v)
*out++ = QLatin1Char(ch);
return out;
return QLatin1::convertToUnicode(out, v);
}
QChar *write(QChar *out, QStringView v)
{