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:
Artur Wieczorek
2015-04-03 21:09:13 +02:00
parent d89d730900
commit 6a7b95f419
3 changed files with 15 additions and 16 deletions

View File

@@ -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