]> git.saurik.com Git - wxWidgets.git/commitdiff
Make GetWxObjectPtr() const.
authorRobert Roebling <robert@roebling.de>
Tue, 26 Sep 2006 20:16:24 +0000 (20:16 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 26 Sep 2006 20:16:24 +0000 (20:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/variant.h
src/common/variant.cpp

index d6bd548ca7cf05e2670b3d518c5d379afb0418c6..9388e4b6d816e018c101c709d2236323a03126c0 100644 (file)
@@ -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
index a06ac80606a55444bebed43929b21256e2571236..2ebfcff9d82cb5a3b56c488ed178cd47c5560120 100644 (file)
@@ -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();