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:
Artur Wieczorek
2015-03-29 21:38:51 +02:00
parent 5353a00180
commit 4e7fbd4e92
4 changed files with 11 additions and 11 deletions

View File

@@ -1574,7 +1574,7 @@ void wxPropertyGridPageState::DoSetPropertyValues( const wxVariantList& list, wx
wxPGProperty* p = foundProp;
// If it was a list, we still have to go through it.
if ( wxStrcmp(current->GetType(), wxS("list")) == 0 )
if ( current->IsType(wxPG_VARIANT_TYPE_LIST) )
{
DoSetPropertyValues( current->GetList(),
p->IsCategory()?p:(NULL)
@@ -1595,7 +1595,7 @@ void wxPropertyGridPageState::DoSetPropertyValues( const wxVariantList& list, wx
else
{
// Is it list?
if ( !current->IsType(wxS("list")) )
if ( !current->IsType(wxPG_VARIANT_TYPE_LIST) )
{
// Not.
}