forked from qt-creator/qt-creator
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:
@@ -76,7 +76,7 @@ inline bool operator!=(const QmlEventLocation &location1, const QmlEventLocation
|
||||
return !(location1 == location2);
|
||||
}
|
||||
|
||||
inline uint qHash(const QmlEventLocation &location)
|
||||
inline auto qHash(const QmlEventLocation &location)
|
||||
{
|
||||
return qHash(location.filename())
|
||||
^ ((location.line() & 0xfff) // 12 bits of line number
|
||||
|
||||
Reference in New Issue
Block a user