From a12be9e9093c10895c05d8dc116c6474dbdcefdf Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 10 Oct 2024 13:25:42 +0200 Subject: [PATCH] QIcc: remove unneeded internal qHash(QIcc::Tag) overload Qt has had a qHash() overload for (also scoped) enums since Qt 6.5 (fb4bc5fa262336504e0f28603658bb2572796ce5). Since the hashed type is internal to the qicc.cpp TU, it doesn't matter whether we change the result of the hash calculation (but this author assumes we don't). Pick-to: 6.5 Change-Id: I58238cc13113157438be0951c471f654a838b608 Reviewed-by: Allan Sandfeld Jensen Reviewed-by: Tim Blechmann (cherry picked from commit 4f5b48d4c69527e5f2450694219432e84b2af6df) Reviewed-by: Qt Cherry-pick Bot --- src/gui/painting/qicc.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/gui/painting/qicc.cpp b/src/gui/painting/qicc.cpp index dd366ef0199..db5565e2612 100644 --- a/src/gui/painting/qicc.cpp +++ b/src/gui/painting/qicc.cpp @@ -128,11 +128,6 @@ enum class Tag : quint32 { } // namespace QIcc -inline size_t qHash(const QIcc::Tag &key, size_t seed = 0) -{ - return qHash(quint32(key), seed); -} - namespace QIcc { struct TagTableEntry