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

@@ -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