Add default constructor and Q_DISABLE_COPY_MOVE to native interfaces
We currently define a non-default destructor, but without defining a constructor, copy constructor, copy assignment operator, move constructor, or a move assignment operator Pick-to: 6.2 Change-Id: I0dcaef61d86292df5963fac410d22cb3fcf12af3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
f0757d2fcd
commit
41d6a26731
@ -69,6 +69,8 @@ QT_BEGIN_NAMESPACE
|
|||||||
template <typename> \
|
template <typename> \
|
||||||
friend struct QNativeInterface::Private::TypeInfo; \
|
friend struct QNativeInterface::Private::TypeInfo; \
|
||||||
public: \
|
public: \
|
||||||
|
NativeInterface() = default; \
|
||||||
|
Q_DISABLE_COPY_MOVE(NativeInterface)
|
||||||
|
|
||||||
// Revisioned interfaces only make sense when exposed through a base
|
// Revisioned interfaces only make sense when exposed through a base
|
||||||
// type via QT_DECLARE_NATIVE_INTERFACE_ACCESSOR, as the revision
|
// type via QT_DECLARE_NATIVE_INTERFACE_ACCESSOR, as the revision
|
||||||
|
Loading…
x
Reference in New Issue
Block a user