From 48ba35c35751f2ba053d091bb9b75f870250c132 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 18 Jan 2006 08:34:03 +0000 Subject: [PATCH] Two corrections to const fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/list.h | 2 +- src/common/list.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/list.h b/include/wx/list.h index 47281cb1d5..a83cff4166 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -136,7 +136,7 @@ private: #endif // defined( __VISUALC__ ) // Visual C++ 2005 complains about the const -#if defined(__VISUALC__) && __VISUALC__ >= 1400 +#if (defined(__VISUALC__) && __VISUALC__ >= 1400) || defined(__MWERKS__) #define _WX_DELETEFUNCTIONCONST #else #define _WX_DELETEFUNCTIONCONST const diff --git a/src/common/list.cpp b/src/common/list.cpp index d400eff517..bd111c8ad2 100644 --- a/src/common/list.cpp +++ b/src/common/list.cpp @@ -758,7 +758,7 @@ wxNode *wxStringList::Prepend(const wxChar *s) WX_DEFINE_LIST(wxObjectList) // with wxUSE_STL wxStringList contains wxString objects, not pointers -void wxStringListBase::DeleteFunction( const wxString WXUNUSED(X) ) +void wxStringListBase::DeleteFunction( _WX_DELETEFUNCTIONCONST wxString WXUNUSED(X) ) { } -- 2.45.2