summaryrefslogtreecommitdiff
path: root/src/lib/corelib/api/project.h
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/api/project.h
parentc0f2da3065fd00b4d4193786865f7603e07c4515 (diff)
downloadqbs-c8108730b3363757c8abdbbdef02b3cfd4cf73aa.tar.gz
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/api/project.h')
-rw-r--r--src/lib/corelib/api/project.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/corelib/api/project.h b/src/lib/corelib/api/project.h
index 380806f3a..7ea7645a7 100644
--- a/src/lib/corelib/api/project.h
+++ b/src/lib/corelib/api/project.h
@@ -43,6 +43,7 @@
#include "transformerdata.h"
#include "../language/forward_decls.h"
#include "../tools/error.h"
+#include "../tools/porting.h"
#include "../tools/qbs_export.h"
#include <QtCore/qshareddata.h>
@@ -83,7 +84,7 @@ class ProjectPrivate;
class QBS_EXPORT Project
{
friend class SetupProjectJob;
- friend uint qHash(const Project &p);
+ friend QHashValueType qHash(const Project &p);
public:
SetupProjectJob *setupProject(const SetupProjectParameters &parameters,
ILogSink *logSink, QObject *jobOwner);
@@ -173,7 +174,7 @@ private:
};
inline bool operator!=(const Project &p1, const Project &p2) { return !(p1 == p2); }
-inline uint qHash(const Project &p) { return QT_PREPEND_NAMESPACE(qHash)(p.d.data()); }
+inline QHashValueType qHash(const Project &p) { return QT_PREPEND_NAMESPACE(qHash)(p.d.data()); }
} // namespace qbs