summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/installer_global.h
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2023-09-25 16:13:53 +0300
committerKatja Marttila <katja.marttila@qt.io>2023-09-29 10:50:50 +0300
commit84ba61dc7f60300ff7eee3c311a74ca7f64872be (patch)
tree3f2cae96a17e2990f8e3631e83f11d510953abe4 /src/libs/installer/installer_global.h
parent12384d00b301d4f905ec6fec9f55599bb19c492c (diff)
Fix qHash return value
qHash return value in Qt6 is size_t. Making relevant changes so that no warnings occur when building with Qt5 or Qt6. Change-Id: Ia4d8de49b163a59b58ec7c1eea83979b174b1bd1 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/installer/installer_global.h')
-rw-r--r--src/libs/installer/installer_global.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libs/installer/installer_global.h b/src/libs/installer/installer_global.h
index ea6865042..285eff910 100644
--- a/src/libs/installer/installer_global.h
+++ b/src/libs/installer/installer_global.h
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2023 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Installer Framework.
@@ -40,4 +40,10 @@
# define INSTALLER_EXPORT
#endif
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
+typedef uint hashValue;
+#else
+typedef size_t hashValue;
+#endif
+
#endif //INSTALLER_GLOBAL_H