Core: Avoid needless copy of QChars out of a string

Fixes a warning from the code model:-)

Change-Id: I6bb152f8c564f5daabd04ec49d4ce37b8104f056
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2017-07-10 16:20:59 +02:00
parent 816222267e
commit 13d3a7a5dc

View File

@@ -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