Fix qHash-related size compatibility warnings by MSVC

Change-Id: I3b7981ce78b67db4b996f99682284a0b911d8cd7
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Orgad Shaneh
2021-10-14 22:27:08 +03:00
committed by Orgad Shaneh
parent 11c73adbe0
commit 3871e40f43
58 changed files with 126 additions and 85 deletions

View File

@@ -26,6 +26,7 @@
#pragma once
#include "utils_global.h"
#include "porting.h"
#include "hostosinfo.h"
@@ -140,7 +141,7 @@ public:
void clear();
bool isEmpty() const;
uint hash(uint seed) const;
QHashValueType hash(uint seed) const;
[[nodiscard]] FilePath resolvePath(const FilePath &tail) const;
[[nodiscard]] FilePath resolvePath(const QString &tail) const;
@@ -201,7 +202,7 @@ private:
using FilePaths = QList<FilePath>;
inline uint qHash(const Utils::FilePath &a, uint seed = 0)
inline QHashValueType qHash(const Utils::FilePath &a, uint seed = 0)
{
return a.hash(seed);
}