AutoTest: Use same pattern across file

Latest refactoring brought up a new pattern for
creating and using the fake future.
Follow the same pattern at older occurrence.

Change-Id: I4db4b3e6b0558660ef416e4201a017acba3de538
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2018-05-25 10:03:04 +02:00
parent 5e8ad2ca45
commit 38bc2358ac

View File

@@ -513,8 +513,7 @@ void TestRunner::debugTests()
// We need a fake QFuture for the results. TODO: replace with QtConcurrent::run
QFutureInterface<TestResultPtr> *futureInterface
= new QFutureInterface<TestResultPtr>(QFutureInterfaceBase::Running);
QFuture<TestResultPtr> future(futureInterface);
m_futureWatcher.setFuture(future);
m_futureWatcher.setFuture(futureInterface->future());
if (useOutputProcessor) {
TestOutputReader *outputreader = config->outputReader(*futureInterface, 0);