Commit 13d3a7a5 authored by Tobias Hunger's avatar Tobias Hunger

Core: Avoid needless copy of QChars out of a string

Fixes a warning from the code model:-)

Change-Id: I6bb152f8c564f5daabd04ec49d4ce37b8104f056
Reviewed-by: default avatarhjk <hjk@qt.io>
parent 81622226
......@@ -144,7 +144,7 @@ QString UtilsJsExtension::mktemp(const QString &pattern) const
QString UtilsJsExtension::asciify(const QString &input) const
{
QString result;
for (const QChar c : input) {
for (const QChar &c : input) {
if (c.isPrint() && c.unicode() < 128)
result.append(c);
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment