aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4scopedvalue_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-08-03 23:22:59 +0200
committerLars Knoll <lars.knoll@qt.io>2018-08-06 10:00:41 +0000
commit15ef80f1d92eb3a88dc135b4e6347f57a5982f9c (patch)
tree382bef078558dc1d5abcd0f5b79c809964310785 /src/qml/jsruntime/qv4scopedvalue_p.h
parent6a85ec63a3a905e638b4f2e1e7cd92c17ad1a9f5 (diff)
Fix some details in class initialization
Change-Id: Ib8a76362686f1bbba49daca59fa4a30773150103 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4scopedvalue_p.h')
-rw-r--r--src/qml/jsruntime/qv4scopedvalue_p.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4scopedvalue_p.h b/src/qml/jsruntime/qv4scopedvalue_p.h
index 1f66c4a47e..8ac2213492 100644
--- a/src/qml/jsruntime/qv4scopedvalue_p.h
+++ b/src/qml/jsruntime/qv4scopedvalue_p.h
@@ -268,6 +268,19 @@ struct ScopedPropertyKey
return *ptr;
}
+ bool operator==(const PropertyKey &other) const {
+ return *ptr == other;
+ }
+ bool operator==(const ScopedPropertyKey &other) const {
+ return *ptr == *other.ptr;
+ }
+ bool operator!=(const PropertyKey &other) const {
+ return *ptr != other;
+ }
+ bool operator!=(const ScopedPropertyKey &other) const {
+ return *ptr != *other.ptr;
+ }
+
PropertyKey *ptr;
};