forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
11c73adbe0
commit
3871e40f43
@@ -160,12 +160,12 @@ bool XcodePlatform::operator==(const XcodePlatform &other) const
|
||||
return developerPath == other.developerPath;
|
||||
}
|
||||
|
||||
uint qHash(const XcodePlatform &platform)
|
||||
Utils::QHashValueType qHash(const XcodePlatform &platform)
|
||||
{
|
||||
return qHash(platform.developerPath);
|
||||
}
|
||||
|
||||
uint qHash(const XcodePlatform::ToolchainTarget &target)
|
||||
Utils::QHashValueType qHash(const XcodePlatform::ToolchainTarget &target)
|
||||
{
|
||||
return qHash(target.name);
|
||||
}
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
****************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <utils/porting.h>
|
||||
|
||||
#include <QSettings>
|
||||
#include <QSharedPointer>
|
||||
#include <QString>
|
||||
@@ -61,8 +64,8 @@ public:
|
||||
bool operator==(const XcodePlatform &other) const;
|
||||
};
|
||||
|
||||
uint qHash(const XcodePlatform &platform);
|
||||
uint qHash(const XcodePlatform::ToolchainTarget &target);
|
||||
Utils::QHashValueType qHash(const XcodePlatform &platform);
|
||||
Utils::QHashValueType qHash(const XcodePlatform::ToolchainTarget &target);
|
||||
|
||||
class XcodeProbe
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user