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
This commit is contained in:
parent
6a0a70c979
commit
5eedcd5eee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user