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:
@@ -1853,7 +1853,7 @@ void wxWindowMac::Update()
|
||||
|
||||
wxNonOwnedWindow* wxWindowMac::MacGetTopLevelWindow() const
|
||||
{
|
||||
wxWindowMac *iter = (wxWindowMac*)this ;
|
||||
wxWindowMac* iter = const_cast<wxWindowMac*>(this);
|
||||
|
||||
while ( iter )
|
||||
{
|
||||
|
Reference in New Issue
Block a user