Fix int conversion to string

clang warning: adding 'int' to a string does not append to the string

Change-Id: I6dc393269a52e9482fde106c17132336cf5ce226
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
This commit is contained in:
Frederik Gladhorn 2014-08-06 17:46:38 +02:00 committed by Oswald Buddenhagen
parent c1be0fbe7d
commit 1e2af80785

View File

@ -171,7 +171,7 @@ void BenchmarkQtBinaryJson::jsonObjectInsert()
QBENCHMARK {
for (int i = 0; i < 1000; i++)
object.insert("testkey_" + i, value);
object.insert("testkey_" + QString::number(i), value);
}
}
@ -183,7 +183,7 @@ void BenchmarkQtBinaryJson::variantMapInsert()
QBENCHMARK {
for (int i = 0; i < 1000; i++)
object.insert("testkey_" + i, variantValue);
object.insert("testkey_" + QString::number(i), variantValue);
}
}