From 41d6a2673124dfb3e4d4c98b9c631ce730d17e6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 10 Aug 2021 12:11:13 +0200 Subject: 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 --- src/corelib/global/qnativeinterface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/corelib') 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 \ 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 -- cgit v1.2.3