aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/tools/id.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2021-11-06 20:01:54 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2021-11-08 11:29:03 +0000
commitc8108730b3363757c8abdbbdef02b3cfd4cf73aa (patch)
tree74d04719a9baae04a32e310d3b1b80c93aa58fe0 /src/lib/corelib/tools/id.cpp
parentc0f2da3065fd00b4d4193786865f7603e07c4515 (diff)
Fix size_t -> uint conversion warnings with Qt 6
Example: codelocation.h(88): warning C4267: 'return': conversion from 'size_t' to 'uint', possible loss of data Change-Id: I06fa98d1e6d8eec85720bd6c5150a505ea98bdd1 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'src/lib/corelib/tools/id.cpp')
-rw-r--r--src/lib/corelib/tools/id.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/tools/id.cpp b/src/lib/corelib/tools/id.cpp
index 33cfd60f7..c82fc22b6 100644
--- a/src/lib/corelib/tools/id.cpp
+++ b/src/lib/corelib/tools/id.cpp
@@ -75,7 +75,7 @@ public:
: n(length), str(s)
{
if (!n)
- length = n = qstrlen(s);
+ length = n = int(qstrlen(s));
h = 0;
while (length--) {
h = (h << 4) + *s++;
@@ -95,7 +95,7 @@ static bool operator==(const StringHolder &sh1, const StringHolder &sh2)
}
-static uint qHash(const StringHolder &sh)
+QHashValueType qHash(const StringHolder &sh)
{
return sh.h;
}