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:
Tor Arne Vestbø 2021-08-10 12:11:13 +02:00
parent f0757d2fcd
commit 41d6a26731

View File

@ -69,6 +69,8 @@ QT_BEGIN_NAMESPACE
template <typename> \
friend struct QNativeInterface::Private::TypeInfo; \
public: \
NativeInterface() = default; \
Q_DISABLE_COPY_MOVE(NativeInterface)
// Revisioned interfaces only make sense when exposed through a base
// type via QT_DECLARE_NATIVE_INTERFACE_ACCESSOR, as the revision