diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2021-05-19 13:12:19 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2021-05-22 03:20:32 +0200 |
commit | 8789ace197bfcc209002f9f8ec30f00e9cf25e8a (patch) | |
tree | 8d2ed01582ef784c4baf2bc29090e2ae07f73905 /src/corelib/thread | |
parent | 41774f7597fe0d6f3534e1a35169d5a9bc98a2de (diff) |
QPromise: code tidies
Get rid of a reduntant initialization; a data member gets default
initialized anyways.
Change-Id: I85ad4c9a00b3066ccd993dfc2652a3f0164a860e
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'src/corelib/thread')
-rw-r--r-- | src/corelib/thread/qpromise.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/thread/qpromise.h b/src/corelib/thread/qpromise.h index 24b0cd1e80..afe51e07d0 100644 --- a/src/corelib/thread/qpromise.h +++ b/src/corelib/thread/qpromise.h @@ -112,7 +112,7 @@ public: bool addResult(T &&result, int index = -1) { } #endif private: - mutable QFutureInterface<T> d = QFutureInterface<T>(); + mutable QFutureInterface<T> d; }; template<typename T> |