summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2024-06-25 22:55:18 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2024-07-08 22:42:29 +0200
commit6a49e551683c63549e0ba8357c9a66930f40c1fe (patch)
tree18fe420146c7b359512f169666db17be26e498b4 /src
parentcb870adad612018e7007f4a1b6066b49d0f2dc4a (diff)
QHash: code tidies
Re-use QtPrivate::type_dependent_false instead of a custom check. Change-Id: Id7af7e34d430d2dbd2363c2d0d8078560bf830d3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qhash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qhash.h b/src/corelib/tools/qhash.h
index 9cc6fbf30bc..47bce5706b2 100644
--- a/src/corelib/tools/qhash.h
+++ b/src/corelib/tools/qhash.h
@@ -62,7 +62,7 @@ size_t calculateHash(const T &t, size_t seed = 0)
Q_UNUSED(seed);
return std::hash<T>()(t);
} else {
- static_assert(sizeof(T) == 0, "The key type must have a qHash overload or a std::hash specialization");
+ static_assert(QtPrivate::type_dependent_false<T>(), "The key type must have a qHash overload or a std::hash specialization");
return 0;
}
}