smallstring: Avoid size_t to (u)int warning

Change-Id: If206f0e3a90694b4e0d50e2d4569e0d6a34cf8ce
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tim Jenssen
2021-07-07 17:34:09 +02:00
parent 59ac4dbf0d
commit 4c878e5700

View File

@@ -155,7 +155,7 @@ namespace std {
template<> struct hash<Utils::SmallString>
{
using argument_type = Utils::SmallString;
using result_type = uint;
using result_type = std::size_t;
result_type operator()(const argument_type& string) const
{
return qHashBits(string.data(), string.size());