diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-06-21 11:47:33 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2023-06-22 18:20:10 +0200 |
commit | 17542386569505b4f8be526f922103ab09d0c812 (patch) | |
tree | 875910a0abb50517ef11c502409cdbfbde05ba4d /src/corelib/thread/qfuturesynchronizer.h | |
parent | 38cd3cb1261ee43e70cc5659ac72149a523995d3 (diff) |
QFutureSynchonizer: suggest future.waitForFinished() instead of QFutureSynchronizer(future);
Task-number: QTBUG-114767
Change-Id: I6c626438d8d8deb2498ec7cb47f57e6fcef19665
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/corelib/thread/qfuturesynchronizer.h')
-rw-r--r-- | src/corelib/thread/qfuturesynchronizer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/thread/qfuturesynchronizer.h b/src/corelib/thread/qfuturesynchronizer.h index 368ef0c81b..a996362bfd 100644 --- a/src/corelib/thread/qfuturesynchronizer.h +++ b/src/corelib/thread/qfuturesynchronizer.h @@ -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)); } |