Use predefined constants to represent wxPG variant types.
Instead of using individual string literals use globally defined constants representing wxPG variant types.
This commit is contained in:
@@ -1984,7 +1984,7 @@ wxWindow* wxPropertyGrid::GenerateEditorTextCtrl( const wxPoint& pos,
|
||||
wxVariant attrVal = prop->GetAttribute(wxPG_ATTR_AUTOCOMPLETE);
|
||||
if ( !attrVal.IsNull() )
|
||||
{
|
||||
wxASSERT(attrVal.IsType(wxS("arrstring")));
|
||||
wxASSERT(attrVal.IsType(wxPG_VARIANT_TYPE_ARRSTRING));
|
||||
tc->AutoComplete(attrVal.GetArrayString());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user