summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/core/qresourcesmanager/arraypolicy/tst_bench_arraypolicy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/core/qresourcesmanager/arraypolicy/tst_bench_arraypolicy.cpp')
-rw-r--r--tests/benchmarks/core/qresourcesmanager/arraypolicy/tst_bench_arraypolicy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/benchmarks/core/qresourcesmanager/arraypolicy/tst_bench_arraypolicy.cpp b/tests/benchmarks/core/qresourcesmanager/arraypolicy/tst_bench_arraypolicy.cpp
index d0b105bb9..5bac867d7 100644
--- a/tests/benchmarks/core/qresourcesmanager/arraypolicy/tst_bench_arraypolicy.cpp
+++ b/tests/benchmarks/core/qresourcesmanager/arraypolicy/tst_bench_arraypolicy.cpp
@@ -69,8 +69,8 @@ void benchmarkReleaseResources()
Qt3DCore::ArrayAllocatingPolicy<T> allocator;
const int max = (1 << 16) - 1;
- QList<Qt3DCore::QHandle<T>> resources(max);
- for (int i = 0; i < max; i++) {
+ std::vector<Qt3DCore::QHandle<T>> resources(max);
+ for (size_t i = 0; i < max; i++) {
resources[i] = allocator.allocateResource();
}