From f0398d12672df3909d0935fbfdc1240268f417f8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 22 Mar 2021 18:43:00 +0100 Subject: [PATCH] Remove useless wxIntegerHash assignment operator This doesn't seem to be doing anything useful but does result in -Wdeprecated-copy from clang 10, as normally a custom copy ctor should be defined as well, if the assignment operator is defined. --- include/wx/hashmap.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h index b1ebc76aaf..43846d5c33 100644 --- a/include/wx/hashmap.h +++ b/include/wx/hashmap.h @@ -507,8 +507,6 @@ public: size_t operator()( wxLongLong_t x ) const wxNOEXCEPT { return longlongHash(x); } size_t operator()( wxULongLong_t x ) const wxNOEXCEPT { return longlongHash(x); } #endif // wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG - - wxIntegerHash& operator=(const wxIntegerHash&) { return *this; } }; #else // wxNEEDS_WX_HASH_MAP