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:
Robert Roebling
2006-09-26 20:16:24 +00:00
parent f09df8b2ea
commit 63574b81fa
2 changed files with 3 additions and 3 deletions

View File

@@ -224,8 +224,8 @@ public:
#if WXWIN_COMPATIBILITY_2_4 #if WXWIN_COMPATIBILITY_2_4
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

View File

@@ -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();