From 00b802ca9b2b09bc0357bc4b8f213657e24b02f8 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Tue, 13 Apr 2010 16:52:26 +1000 Subject: Fix test --- tests/auto/declarative/examples/tst_examples.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 sync; for (int ii = 0; ii < tests.count(); ++ii) { - QFuture r = QtConcurrent::run(tests.at(ii), &Example::run); + Example *e = &tests[ii]; + QFuture r = QtConcurrent::run(e, &Example::run); sync.addFuture(r); } -- cgit v0.12