From 755ee1cf10159ae7884e630018da929ab40c6d8d Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 7 Nov 2021 22:39:10 +0100 Subject: [PATCH] Get rid of unnecessary casting --- src/propgrid/propgridpagestate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/propgridpagestate.cpp b/src/propgrid/propgridpagestate.cpp index 1b7b9e7ba3..572e52bddd 100644 --- a/src/propgrid/propgridpagestate.cpp +++ b/src/propgrid/propgridpagestate.cpp @@ -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.