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:
@@ -292,7 +292,7 @@ int wxDirDialog::ShowSHBrowseForFolder(WXHWND owner)
|
||||
// do show the dialog
|
||||
wxItemIdList pidl(SHBrowseForFolder(&bi));
|
||||
|
||||
wxItemIdList::Free((LPITEMIDLIST)bi.pidlRoot);
|
||||
wxItemIdList::Free(const_cast<LPITEMIDLIST>(bi.pidlRoot));
|
||||
|
||||
if ( !pidl )
|
||||
{
|
||||
|
Reference in New Issue
Block a user