From bf92f0fee551c6d5c955452e099d805c9d785165 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Wed, 2 Dec 2020 18:07:25 +0100 Subject: QHash: default the argument for the hash calculator helper Just to be consistent with everything else. Change-Id: I48ceb4bbc1cbf65b03caee77b7405cb585793248 Reviewed-by: Thiago Macieira --- src/corelib/tools/qhash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/tools') 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); -- cgit v1.2.3