Don't remove const-ness using C-style cast
Avoid another -Wcast-qual from gcc.
This commit is contained in:
parent
9c48b0e8e7
commit
9c2cf91223
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue