diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-08-10 12:11:13 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-08-10 19:31:03 +0200 |
commit | 41d6a2673124dfb3e4d4c98b9c631ce730d17e6c (patch) | |
tree | 1b133894f69753fe5ae29b78925121ef52f3b082 /src/corelib/global | |
parent | f0757d2fcdf78e1c0573d8b8e1b3aca88dde6ad1 (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
Pick-to: 6.2
Change-Id: I0dcaef61d86292df5963fac410d22cb3fcf12af3
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/global')
-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 9bae22d5ea..56805d5a6e 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 |