aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/ftw
diff options
context:
space:
mode:
authorAndrei Golubev <andrei.golubev@qt.io>2021-06-14 15:45:54 +0200
committerAndrei Golubev <andrei.golubev@qt.io>2021-06-15 09:42:15 +0200
commitb3d40eab492d8ce1b069e878b3e46c344ad291b5 (patch)
treeba92d221948c5bd27064d2756503e71118e779ac /src/qml/qml/ftw
parent28d133a8a779f9bf1432a6003456b62f74b3c492 (diff)
Add inequality operator to QQmlRefPointer
Change-Id: I54fa11345c189196df119c536ab465935a8263a3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io>
Diffstat (limited to 'src/qml/qml/ftw')
-rw-r--r--src/qml/qml/ftw/qqmlrefcount_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/qml/ftw/qqmlrefcount_p.h b/src/qml/qml/ftw/qqmlrefcount_p.h
index 1d016107e6..6c8bf20279 100644
--- a/src/qml/qml/ftw/qqmlrefcount_p.h
+++ b/src/qml/qml/ftw/qqmlrefcount_p.h
@@ -103,6 +103,8 @@ 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; }
+ friend bool operator!=(const QQmlRefPointer &a, const QQmlRefPointer &b) { return !(a == b); }
+
private:
T *o;
};