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
@@ -141,7 +141,7 @@ bool FontSettings::equals(const FontSettings &f) const
|
||||
&& m_scheme == f.m_scheme;
|
||||
}
|
||||
|
||||
uint qHash(const TextStyle &textStyle)
|
||||
auto qHash(const TextStyle &textStyle)
|
||||
{
|
||||
return ::qHash(quint8(textStyle));
|
||||
}
|
||||
@@ -202,7 +202,7 @@ QTextCharFormat FontSettings::toTextCharFormat(TextStyle category) const
|
||||
return tf;
|
||||
}
|
||||
|
||||
uint qHash(TextStyles textStyles)
|
||||
auto qHash(TextStyles textStyles)
|
||||
{
|
||||
return ::qHash(reinterpret_cast<quint64&>(textStyles));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user