summaryrefslogtreecommitdiff
path: root/user/qt5-qtbase/forward-port-move.patch
blob: cc30ea6e1f701e3725c8bc212e8ded757856e5b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
At least Akonadi uses this from 5.13.0.  We can use LTS Qt by backporting these
simple macros.

--- qtbase-everywhere-src-5.12.9/src/corelib/global/qglobal.h.old	2020-06-03 10:51:20.000000000 +0000
+++ qtbase-everywhere-src-5.12.9/src/corelib/global/qglobal.h	2020-09-17 16:01:53.181072159 +0000
@@ -372,6 +372,14 @@
     Class(const Class &) Q_DECL_EQ_DELETE;\
     Class &operator=(const Class &) Q_DECL_EQ_DELETE;
 
+#define Q_DISABLE_MOVE(Class) \
+    Class(Class &&) = delete; \
+    Class &operator=(Class &&) = delete;
+
+#define Q_DISABLE_COPY_MOVE(Class) \
+    Q_DISABLE_COPY(Class) \
+    Q_DISABLE_MOVE(Class)
+
 /*
    No, this is not an evil backdoor. QT_BUILD_INTERNAL just exports more symbols
    for Qt's internal unit tests. If you want slower loading times and more