Eliminate -Wcast-qual warnings with GCC and Clang
Use const_cast, mutable, and various other changes to avoid -Wcast-qual
This commit is contained in:
@@ -41,6 +41,6 @@ wxIcon::wxIcon() : wxBitmap()
|
||||
|
||||
void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
|
||||
{
|
||||
wxIcon *icon = (wxIcon*)(&bmp);
|
||||
const wxIcon* icon = static_cast<const wxIcon*>(&bmp);
|
||||
*this = *icon;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user