]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxVariant::Convert() implementations for wx(U)LongLong_t, so that wxVariant...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 25 Jul 2010 09:30:50 +0000 (09:30 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 25 Jul 2010 09:30:50 +0000 (09:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/variant.h

index f3b1aca1add8609933a46768a783ae95d9bc2800..e24fe8fffc68c51b2aa7d3c4a5b9281564e41ae4 100644 (file)
@@ -362,6 +362,24 @@ public:
 #if wxUSE_LONGLONG
     bool Convert(wxLongLong* value) const;
     bool Convert(wxULongLong* value) const;
+  #ifdef wxLongLong_t
+    bool Convert(wxLongLong_t* value) const
+    {
+        wxLongLong temp;
+        if ( !Convert(&temp) )
+            return false;
+        *value = temp.GetValue();
+        return true;
+    }
+    bool Convert(wxULongLong_t* value) const
+    {
+        wxULongLong temp;
+        if ( !Convert(&temp) )
+            return false;
+        *value = temp.GetValue();
+        return true;
+    }
+  #endif // wxLongLong_t
 #endif // wxUSE_LONGLONG
 
 // Attributes