diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-13 06:52:26 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-13 06:52:26 (GMT) |
commit | 00b802ca9b2b09bc0357bc4b8f213657e24b02f8 (patch) | |
tree | 07c09dddac30a2a04ca5faffd89e204fd8ad4a92 /tests/auto/declarative/examples/tst_examples.cpp | |
parent | 7fba97dc74a27f836abfcf4941dac6e247379798 (diff) | |
download | Qt-00b802ca9b2b09bc0357bc4b8f213657e24b02f8.zip Qt-00b802ca9b2b09bc0357bc4b8f213657e24b02f8.tar.gz Qt-00b802ca9b2b09bc0357bc4b8f213657e24b02f8.tar.bz2 |
Fix test
Diffstat (limited to 'tests/auto/declarative/examples/tst_examples.cpp')
-rw-r--r-- | tests/auto/declarative/examples/tst_examples.cpp | 3 |
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); } |