diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-12-02 18:07:25 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-12-03 06:52:28 +0100 |
commit | bf92f0fee551c6d5c955452e099d805c9d785165 (patch) | |
tree | 9ab43f7751725886674f53017acca8ff664a323b /src/corelib/tools/qhash.h | |
parent | 06957af4715df7eb6b447c75a1c0180b58c8accb (diff) |
QHash: default the argument for the hash calculator helper
Just to be consistent with everything else.
Change-Id: I48ceb4bbc1cbf65b03caee77b7405cb585793248
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qhash.h')
-rw-r--r-- | src/corelib/tools/qhash.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<T, std::enable_if_t< >> = true; template <typename T> -size_t calculateHash(const T &t, size_t seed) +size_t calculateHash(const T &t, size_t seed = 0) { if constexpr (HasQHashOverload<T>) { return qHash(t, seed); |