From 8e0274c7a6ccd2beae6808019daffa5168744e3e Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Wed, 14 Feb 2024 15:03:24 +0100 Subject: [PATCH] Doc: Add missing return type in QMap documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clang requires return types, and QDoc warns when they're missing. Add the missing return type, and slap on `noexcept` for good measure, as it's part of the signature. Change-Id: Idee32398df4229f0d02be4c90e52b9e8a8ef95ba Reviewed-by: Topi Reiniƶ --- src/corelib/tools/qmap.qdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/tools/qmap.qdoc b/src/corelib/tools/qmap.qdoc index d4779ba28c..0cabf3df38 100644 --- a/src/corelib/tools/qmap.qdoc +++ b/src/corelib/tools/qmap.qdoc @@ -1391,7 +1391,7 @@ */ /*! - \fn template QMap::qHash(const QMap &key, size_t seed) + \fn template size_t QMap::qHash(const QMap &key, size_t seed) noexcept \since 6.8 Returns the hash value for \a key, using \a seed to seed the calculation.