Get rid of unnecessary casting

This commit is contained in:
Artur Wieczorek 2021-11-07 22:39:10 +01:00
parent 789b39be81
commit 755ee1cf10

View File

@ -1659,7 +1659,7 @@ wxPGProperty* wxPropertyGridPageState::DoInsert( wxPGProperty* parent, int index
wxNullProperty,
wxS("when adding properties to fixed parents, use BeginAddChildren and EndAddChildren.") );
bool res = PrepareToAddItem( property, (wxPropertyCategory*)parent );
bool res = PrepareToAddItem( property, parent );
// PrepareToAddItem() may just decide to use current category
// instead of adding new one.