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
@@ -33,10 +33,10 @@
|
||||
|
||||
using namespace CPlusPlus;
|
||||
|
||||
uint CPlusPlus::qHash(const LookupItem &key)
|
||||
Utils::QHashValueType CPlusPlus::qHash(const LookupItem &key)
|
||||
{
|
||||
const uint h1 = QT_PREPEND_NAMESPACE(qHash)(key.type().type());
|
||||
const uint h2 = QT_PREPEND_NAMESPACE(qHash)(key.scope());
|
||||
const Utils::QHashValueType h1 = QT_PREPEND_NAMESPACE(qHash)(key.type().type());
|
||||
const Utils::QHashValueType h2 = QT_PREPEND_NAMESPACE(qHash)(key.scope());
|
||||
return ((h1 << 16) | (h1 >> 16)) ^ h2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user