Don't remove const-ness using C-style cast

Avoid another -Wcast-qual from gcc.
This commit is contained in:
Vadim Zeitlin
2020-08-30 21:16:43 +02:00
parent 9c48b0e8e7
commit 9c2cf91223

View File

@@ -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