Make QFuture::d private
Change-Id: I5820fa1d6d0f003a7cb95db115ef90b32f380a79 Reviewed-by: Vitaly Fanaskov <vitaly.fanaskov@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
1005c86c61
commit
9ff75d4ea1
@ -254,10 +254,18 @@ public:
|
|||||||
private:
|
private:
|
||||||
friend class QFutureWatcher<T>;
|
friend class QFutureWatcher<T>;
|
||||||
|
|
||||||
public: // Warning: the d pointer is not documented and is considered private.
|
template<class U>
|
||||||
// TODO: make this private
|
friend class QFuture;
|
||||||
|
|
||||||
|
template<class Function, class ResultType, class ParentResultType>
|
||||||
|
friend class QtPrivate::Continuation;
|
||||||
|
|
||||||
using QFuturePrivate =
|
using QFuturePrivate =
|
||||||
std::conditional_t<std::is_same_v<T, void>, QFutureInterfaceBase, QFutureInterface<T>>;
|
std::conditional_t<std::is_same_v<T, void>, QFutureInterfaceBase, QFutureInterface<T>>;
|
||||||
|
|
||||||
|
#ifdef QFUTURE_TEST
|
||||||
|
public:
|
||||||
|
#endif
|
||||||
mutable QFuturePrivate d;
|
mutable QFuturePrivate d;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user