diff --git a/src/corelib/tools/qhash.h b/src/corelib/tools/qhash.h index 65ae9b75fd..ddffa69ec5 100644 --- a/src/corelib/tools/qhash.h +++ b/src/corelib/tools/qhash.h @@ -85,7 +85,7 @@ constexpr inline bool HasStdHashSpecializationWithoutSeed> = true; template -size_t calculateHash(const T &t, size_t seed) +size_t calculateHash(const T &t, size_t seed = 0) { if constexpr (HasQHashOverload) { return qHash(t, seed);