From a374692390570b3efe4d4b4fe8894fd9c0b34d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Wed, 31 Oct 2018 21:30:48 +0100 Subject: Remove superfluous 'const' qualifier from trivial return types (#20652) The 'const' used in this context has no meaning --- src/inc/shash.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/inc') diff --git a/src/inc/shash.h b/src/inc/shash.h index 1650ca15b4..05a8a9d1e0 100644 --- a/src/inc/shash.h +++ b/src/inc/shash.h @@ -117,8 +117,8 @@ class DefaultSHashTraits static const bool s_supports_remove = true; - static const ELEMENT Null() { return (const ELEMENT) 0; } - static const ELEMENT Deleted() { return (const ELEMENT) -1; } + static ELEMENT Null() { return (const ELEMENT) 0; } + static ELEMENT Deleted() { return (const ELEMENT) -1; } static bool IsNull(const ELEMENT &e) { return e == (const ELEMENT) 0; } static bool IsDeleted(const ELEMENT &e) { return e == (const ELEMENT) -1; } @@ -612,7 +612,7 @@ public: typedef typename PARENT::count_t count_t; static const bool s_supports_remove = false; - static const element_t Deleted() { UNREACHABLE(); } + static element_t Deleted() { UNREACHABLE(); } static bool IsDeleted(const element_t &e) { LIMITED_METHOD_DAC_CONTRACT; return false; } }; -- cgit v1.2.3