From 9c2cf912238de8f29f8e10df820487aa9b8fd9cc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 30 Aug 2020 21:16:43 +0200 Subject: [PATCH] Don't remove const-ness using C-style cast Avoid another -Wcast-qual from gcc. --- include/wx/motif/statbmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/motif/statbmp.h b/include/wx/motif/statbmp.h index f63fadab50..4d0bbf09df 100644 --- a/include/wx/motif/statbmp.h +++ b/include/wx/motif/statbmp.h @@ -52,7 +52,7 @@ public: wxIcon GetIcon() const { // don't use wxDynamicCast, icons and bitmaps are really the same thing - return *(wxIcon*)&m_messageBitmap; + return *(const wxIcon*)&m_messageBitmap; } // for compatibility with wxMSW