diff --git a/include/wx/variant.h b/include/wx/variant.h index d6bd548ca7..9388e4b6d8 100644 --- a/include/wx/variant.h +++ b/include/wx/variant.h @@ -224,8 +224,8 @@ public: #if WXWIN_COMPATIBILITY_2_4 wxDEPRECATED( wxStringList& GetStringList() const ); #endif - void* GetVoidPtr() const ; - wxObject* GetWxObjectPtr() ; + void* GetVoidPtr() const; + wxObject* GetWxObjectPtr() const; #if wxUSE_DATETIME wxDateTime GetDateTime() const ; #endif // wxUSE_DATETIME diff --git a/src/common/variant.cpp b/src/common/variant.cpp index a06ac80606..2ebfcff9d8 100644 --- a/src/common/variant.cpp +++ b/src/common/variant.cpp @@ -1894,7 +1894,7 @@ void* wxVariant::GetVoidPtr() const return (void*) ((wxVariantDataVoidPtr*) m_data)->GetValue(); } -wxObject* wxVariant::GetWxObjectPtr() +wxObject* wxVariant::GetWxObjectPtr() const { wxASSERT(wxIsKindOf(m_data, wxVariantDataWxObjectPtr)); return (wxObject*) ((wxVariantDataWxObjectPtr*) m_data)->GetValue();