summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-10-02 13:19:48 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-10-17 11:56:59 +0200
commit008343a05e16081e2ed2b7f5166c6d5381a427ca (patch)
tree3e3474dcc90829b9ef4e8ba68943ebf98b168720 /tests/auto/tools
parent9ed75b6716e749403c5ed33ad0bd544a9e5a27ad (diff)
qmake: Fix qHash-related integer conversion warnings
Use size_t instead of uint. Change-Id: I1dc38f61653f9bfc4ddeddcc65b0271aa4ad1256 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/tools')
-rw-r--r--tests/auto/tools/qmakelib/parsertest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/tools/qmakelib/parsertest.cpp b/tests/auto/tools/qmakelib/parsertest.cpp
index 0618b6be6b..0f13728b25 100644
--- a/tests/auto/tools/qmakelib/parsertest.cpp
+++ b/tests/auto/tools/qmakelib/parsertest.cpp
@@ -42,7 +42,7 @@ public:
TokenStream &operator<<(uint n) { ts += QChar(n & 0xffff); ts += QChar(n >> 16); return *this; }
TokenStream &operator<<(QStringView s) { ts += s; return *this; }
TokenStream &operator<<(const ProString &s) { return *this << ushort(s.length()) << s.toQStringView(); }
- TokenStream &operator<<(const ProKey &s) { return *this << s.hash() << s.toString(); }
+ TokenStream &operator<<(const ProKey &s) { return *this << uint(s.hash()) << s.toString(); }
private:
QString ts;