diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-04-16 12:54:59 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-04-16 14:47:55 +0200 |
commit | c3fcbe73189b26e49ad8fa824b2b8e6b7db0a8f4 (patch) | |
tree | b603742c87fcb512c13a5eb2a02a3ff59c34d543 /src/qml/jsruntime/qv4jsonobject_p.h | |
parent | 3768ec496cb8be1b8bedafd08c19732a405dfeea (diff) |
Change qHash return value to size_t
Else on Windows there's a warning:
conversion from 'size_t' to 'uint', possible loss of data
Change-Id: Ifed4899409a13fed31c206ae1e0f195280ee2925
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4jsonobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4jsonobject_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4jsonobject_p.h b/src/qml/jsruntime/qv4jsonobject_p.h index 7d9f204910..7b225fb1b6 100644 --- a/src/qml/jsruntime/qv4jsonobject_p.h +++ b/src/qml/jsruntime/qv4jsonobject_p.h @@ -77,7 +77,7 @@ struct ObjectItem { inline bool operator ==(const ObjectItem &a, const ObjectItem &b) { return a.o->d() == b.o->d(); } -inline int qHash(const ObjectItem &i, uint seed = 0) +inline size_t qHash(const ObjectItem &i, uint seed = 0) { return ::qHash((void *)i.o->d(), seed); } struct JsonObject : Object { |