diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-08-10 12:11:13 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-08-10 19:34:15 +0000 |
commit | 9c61387d3cadfc2ab7f2fb9cfb12ed82dafc0803 (patch) | |
tree | 7467425e121628b4e0d15e3b32c1bf5360c64b17 | |
parent | 331b8dbb5961fb258596b34053402c14f2f81537 (diff) |
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
Change-Id: I0dcaef61d86292df5963fac410d22cb3fcf12af3
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit 41d6a2673124dfb3e4d4c98b9c631ce730d17e6c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/corelib/global/qnativeinterface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/global/qnativeinterface.h b/src/corelib/global/qnativeinterface.h index 5e5c78beec..d1500d2b30 100644 --- a/src/corelib/global/qnativeinterface.h +++ b/src/corelib/global/qnativeinterface.h @@ -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 |