Fix compilation when wxAny was disabled (fixes #12148)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -270,18 +270,20 @@ public:
|
|||||||
|
|
||||||
virtual wxString GetType() const { return wxT("long"); }
|
virtual wxString GetType() const { return wxT("long"); }
|
||||||
|
|
||||||
|
#if wxUSE_ANY
|
||||||
// Since wxAny does not have separate type for integers shorter than
|
// Since wxAny does not have separate type for integers shorter than
|
||||||
// longlong, we do not usually implement wxVariant->wxAny conversion
|
// longlong, we do not usually implement wxVariant->wxAny conversion
|
||||||
// here (but in wxVariantDataLongLong instead).
|
// here (but in wxVariantDataLongLong instead).
|
||||||
#ifndef wxLongLong_t
|
#ifndef wxLongLong_t
|
||||||
DECLARE_WXANY_CONVERSION()
|
DECLARE_WXANY_CONVERSION()
|
||||||
#else
|
#else
|
||||||
bool GetAsAny(wxAny* any) const
|
bool GetAsAny(wxAny* any) const
|
||||||
{
|
{
|
||||||
*any = m_value;
|
*any = m_value;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif // wxUSE_ANY
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
long m_value;
|
long m_value;
|
||||||
|
Reference in New Issue
Block a user