From 5eedcd5eee0c114f457e7549020b1b0e203ca2f0 Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Sun, 25 Jul 2010 09:30:50 +0000 Subject: [PATCH] Added wxVariant::Convert() implementations for wx(U)LongLong_t, so that wxVariant can be converted to native 64-bit integer types on the same terms as it is converted to other numeric types (useful in e.g. template functions) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/variant.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/wx/variant.h b/include/wx/variant.h index f3b1aca..e24fe8f 100644 --- a/include/wx/variant.h +++ b/include/wx/variant.h @@ -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 -- 2.7.4