Core: fix warning in reaper

Change-Id: Ie8be62619d7092982f8e6c8e46e6b019730f2b42
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Tim Jenssen
2016-10-31 16:36:03 +01:00
committed by Tobias Hunger
parent aa97e29920
commit 0e7fc0ef2e

View File

@@ -95,7 +95,6 @@ void reap(QProcess *process, int timeoutMs)
Internal::d->m_synchronizer.addFuture(f);
auto watcher = new QFutureWatcher<void>();
watcher->setFuture(f);
QObject::connect(watcher, &QFutureWatcher<void>::finished, [watcher, reaper]() {
watcher->deleteLater();
@@ -107,6 +106,7 @@ void reap(QProcess *process, int timeoutMs)
delete reaper;
});
watcher->setFuture(f);
}
} // namespace Reaper