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>
This commit is contained in:
parent
41774f7597
commit
8789ace197
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user