forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user