forked from qt-creator/qt-creator
Core: fix warning in reaper
Change-Id: Ie8be62619d7092982f8e6c8e46e6b019730f2b42 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Tobias Hunger
parent
aa97e29920
commit
0e7fc0ef2e
@@ -95,7 +95,6 @@ void reap(QProcess *process, int timeoutMs)
|
|||||||
|
|
||||||
Internal::d->m_synchronizer.addFuture(f);
|
Internal::d->m_synchronizer.addFuture(f);
|
||||||
auto watcher = new QFutureWatcher<void>();
|
auto watcher = new QFutureWatcher<void>();
|
||||||
watcher->setFuture(f);
|
|
||||||
|
|
||||||
QObject::connect(watcher, &QFutureWatcher<void>::finished, [watcher, reaper]() {
|
QObject::connect(watcher, &QFutureWatcher<void>::finished, [watcher, reaper]() {
|
||||||
watcher->deleteLater();
|
watcher->deleteLater();
|
||||||
@@ -107,6 +106,7 @@ void reap(QProcess *process, int timeoutMs)
|
|||||||
|
|
||||||
delete reaper;
|
delete reaper;
|
||||||
});
|
});
|
||||||
|
watcher->setFuture(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Reaper
|
} // namespace Reaper
|
||||||
|
|||||||
Reference in New Issue
Block a user