diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index d38f503eab..695c2cd7bb 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -1042,7 +1042,7 @@ wxWindow* wxPGChoiceEditor::CreateControlsBase( wxPropertyGrid* propGrid, #endif cb->Create(ctrlParent, wxID_ANY, - wxString(), + wxEmptyString, po, si, labels, diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp index 25c5f36cd3..a50cac76d6 100644 --- a/src/propgrid/property.cpp +++ b/src/propgrid/property.cpp @@ -1007,7 +1007,7 @@ wxString wxPGProperty::ValueToString( wxVariant& WXUNUSED(value), int argFlags ) const { wxCHECK_MSG( GetChildCount() > 0, - wxString(), + wxEmptyString, "If user property does not have any children, it must " "override GetValueAsString" );