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:
@@ -211,7 +211,7 @@ public:
|
||||
if ( !found )
|
||||
{
|
||||
if (IsRecordingDefaults())
|
||||
((wxConfigBase *)this)->Write(key, defVal);
|
||||
const_cast<wxConfigBase*>(this)->Write(key, defVal);
|
||||
*value = defVal;
|
||||
}
|
||||
return found;
|
||||
|
Reference in New Issue
Block a user