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:
|
||||
friend class QFutureWatcher<T>;
|
||||
|
||||
public: // Warning: the d pointer is not documented and is considered private.
|
||||
// TODO: make this private
|
||||
template<class U>
|
||||
friend class QFuture;
|
||||
|
||||
template<class Function, class ResultType, class ParentResultType>
|
||||
friend class QtPrivate::Continuation;
|
||||
|
||||
using QFuturePrivate =
|
||||
std::conditional_t<std::is_same_v<T, void>, QFutureInterfaceBase, QFutureInterface<T>>;
|
||||
|
||||
#ifdef QFUTURE_TEST
|
||||
public:
|
||||
#endif
|
||||
mutable QFuturePrivate d;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user