QFutureSynchonizer: suggest future.waitForFinished() instead of QFutureSynchronizer(future);
Task-number: QTBUG-114767 Change-Id: I6c626438d8d8deb2498ec7cb47f57e6fcef19665 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
parent
38cd3cb126
commit
1754238656
@ -18,7 +18,7 @@ class QFutureSynchronizer
|
||||
|
||||
public:
|
||||
Q_NODISCARD_CTOR QFutureSynchronizer() : m_cancelOnWait(false) { }
|
||||
Q_NODISCARD_CTOR
|
||||
Q_NODISCARD_CTOR_X("Use future.waitForFinished() instead.")
|
||||
explicit QFutureSynchronizer(QFuture<T> future)
|
||||
: m_cancelOnWait(false)
|
||||
{ addFuture(std::move(future)); }
|
||||
|
Loading…
Reference in New Issue
Block a user