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:
parent
c1be0fbe7d
commit
1e2af80785
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user