diff options
Diffstat (limited to 'tests/benchmarks/corelib/tools/qhash/main.cpp')
-rw-r--r-- | tests/benchmarks/corelib/tools/qhash/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/benchmarks/corelib/tools/qhash/main.cpp b/tests/benchmarks/corelib/tools/qhash/main.cpp index 7a871b455c..62384fbaa7 100644 --- a/tests/benchmarks/corelib/tools/qhash/main.cpp +++ b/tests/benchmarks/corelib/tools/qhash/main.cpp @@ -138,8 +138,11 @@ void tst_QHash::data() void tst_QHash::qhash_qt4() { QFETCH(QStringList, items); - QStringList realitems = items; // for copy/paste ease between benchmarks - QHash<QString, int> hash; + QHash<Qt4String, int> hash; + + QList<Qt4String> realitems; + foreach (const QString &s, items) + realitems.append(s); QBENCHMARK { for (int i = 0, n = realitems.size(); i != n; ++i) { |