aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/ftw/qqmlrefcount_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-07-13 13:47:58 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-07-15 09:23:47 +0200
commitcfb38538acbb600b828543a3d7892780b96a1f9a (patch)
tree91cc86152822f1c741f48e35b624e43930344b7a /src/qml/qml/ftw/qqmlrefcount_p.h
parent47bf186e0c5c14c47c0b090f52fd8c915b5ea85c (diff)
Add equality operators for QQmlError and QQmlRefPointer
We need those to declare QProperties. Change-Id: I49bf656607931e5d50f6a07cac92b7e176bb2b75 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/ftw/qqmlrefcount_p.h')
-rw-r--r--src/qml/qml/ftw/qqmlrefcount_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/ftw/qqmlrefcount_p.h b/src/qml/qml/ftw/qqmlrefcount_p.h
index b4f8acad49..1d016107e6 100644
--- a/src/qml/qml/ftw/qqmlrefcount_p.h
+++ b/src/qml/qml/ftw/qqmlrefcount_p.h
@@ -102,6 +102,7 @@ public:
inline T* take() { T *res = o; o = nullptr; return res; }
+ friend bool operator==(const QQmlRefPointer &a, const QQmlRefPointer &b) { return a.o == b.o; }
private:
T *o;
};