Make GetWxObjectPtr() const.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -225,7 +225,7 @@ public:
|
|||||||
wxDEPRECATED( wxStringList& GetStringList() const );
|
wxDEPRECATED( wxStringList& GetStringList() const );
|
||||||
#endif
|
#endif
|
||||||
void* GetVoidPtr() const;
|
void* GetVoidPtr() const;
|
||||||
wxObject* GetWxObjectPtr() ;
|
wxObject* GetWxObjectPtr() const;
|
||||||
#if wxUSE_DATETIME
|
#if wxUSE_DATETIME
|
||||||
wxDateTime GetDateTime() const ;
|
wxDateTime GetDateTime() const ;
|
||||||
#endif // wxUSE_DATETIME
|
#endif // wxUSE_DATETIME
|
||||||
|
@@ -1894,7 +1894,7 @@ void* wxVariant::GetVoidPtr() const
|
|||||||
return (void*) ((wxVariantDataVoidPtr*) m_data)->GetValue();
|
return (void*) ((wxVariantDataVoidPtr*) m_data)->GetValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxObject* wxVariant::GetWxObjectPtr()
|
wxObject* wxVariant::GetWxObjectPtr() const
|
||||||
{
|
{
|
||||||
wxASSERT(wxIsKindOf(m_data, wxVariantDataWxObjectPtr));
|
wxASSERT(wxIsKindOf(m_data, wxVariantDataWxObjectPtr));
|
||||||
return (wxObject*) ((wxVariantDataWxObjectPtr*) m_data)->GetValue();
|
return (wxObject*) ((wxVariantDataWxObjectPtr*) m_data)->GetValue();
|
||||||
|
Reference in New Issue
Block a user