Avoid size_t to (u)int warnings with auto, where it is possible

Change-Id: I1ec7454ebce59d99bc828bfd5086907eb0905632
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tim Jenssen
2021-07-07 17:32:53 +02:00
parent cd84331848
commit 40d03d1896
15 changed files with 20 additions and 20 deletions

View File

@@ -46,7 +46,7 @@ public:
inline const QString &name() const { return m_name; }
inline const QString &type() const { return m_type; }
inline int iconType() const { return m_iconType; }
inline uint hash() const { return m_hash; }
inline auto hash() const { return m_hash; }
inline bool operator==(const SymbolInformation &other) const
{
return hash() == other.hash() && iconType() == other.iconType() && name() == other.name()
@@ -64,7 +64,7 @@ private:
};
//! qHash overload for QHash/QSet
inline uint qHash(const SymbolInformation &information)
inline auto qHash(const SymbolInformation &information)
{
return information.hash();
}