summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/declarative/examples/tst_examples.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/declarative/examples/tst_examples.cpp b/tests/auto/declarative/examples/tst_examples.cpp
index 7f4367e..ae74fc0 100644
--- a/tests/auto/declarative/examples/tst_examples.cpp
+++ b/tests/auto/declarative/examples/tst_examples.cpp
@@ -276,7 +276,8 @@ void tst_examples::examples()
QFutureSynchronizer<void> sync;
for (int ii = 0; ii < tests.count(); ++ii) {
- QFuture<void> r = QtConcurrent::run(tests.at(ii), &Example::run);
+ Example *e = &tests[ii];
+ QFuture<void> r = QtConcurrent::run(e, &Example::run);
sync.addFuture(r);
}