Use predefined constants to represent common wxPG variant types (cont.).
Instead of using individual string literals use globally defined constants representing wxPG variant types (wxLongLong, wxULongLong, wxArrayInt, etc.).
This commit is contained in:
@@ -190,10 +190,10 @@ public:
|
||||
or
|
||||
|
||||
@code
|
||||
wxLongLong_t value;
|
||||
wxLongLong value;
|
||||
wxVariant variant = property->GetValue();
|
||||
if ( variant.GetType() == "wxLongLong" )
|
||||
value = wxLongLongFromVariant(variant);
|
||||
if ( variant.GetType() == "longlong" )
|
||||
value = variant.GetLongLong();
|
||||
else
|
||||
value = variant.GetLong();
|
||||
@endcode
|
||||
|
Reference in New Issue
Block a user