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:
@@ -637,7 +637,8 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
pg->OnComboItemPaint( this, item, &dc, (wxRect&)rect, flags );
|
||||
wxRect r(rect);
|
||||
pg->OnComboItemPaint(this, item, &dc, r, flags);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user