X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9f9065e283f2f4b7330c0a2a7186e6cabc20f6d..ca44dbde5f44e358fba98c24adf792a97f7db19c:/include/wx/list.h diff --git a/include/wx/list.h b/include/wx/list.h index a93d2eca93..7bfeb79f63 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -275,7 +275,7 @@ inline const void *wxListCastElementToVoidPtr(const wxString& str) push_front( e ); \ return compatibility_iterator( this, begin() ); \ } \ - compatibility_iterator Insert( compatibility_iterator & i, elT e ) \ + compatibility_iterator Insert(const compatibility_iterator & i, elT e)\ { \ return compatibility_iterator( this, insert( i.m_iter, e ) ); \ } \ @@ -457,7 +457,7 @@ protected: virtual void DeleteData() { } public: // for wxList::iterator - void** GetDataPtr() const { return &(wx_const_cast(wxNodeBase*, this)->m_data); } + void** GetDataPtr() const { return &(const_cast(this)->m_data); } private: // optional key stuff wxListKeyValue m_key;