]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/list.h
DeleteFunction argument should be non-const since it
[wxWidgets.git] / include / wx / list.h
index a83cff416650e4c95b7b71930516dd9b6690a8a0..bb80b07f443df23122f1ad24c3c93763394bcb76 100644 (file)
@@ -135,13 +135,6 @@ private:
 
 #endif // defined( __VISUALC__ )
 
-// Visual C++ 2005 complains about the const
-#if (defined(__VISUALC__) && __VISUALC__ >= 1400) || defined(__MWERKS__)
-#define _WX_DELETEFUNCTIONCONST
-#else
-#define _WX_DELETEFUNCTIONCONST const
-#endif
-
 #define WX_DECLARE_LIST_XO(elT, liT, decl)                                    \
     VC6_WORKAROUND(elT, liT, decl)                                            \
     decl liT : public std::list<elT>                                          \
@@ -150,7 +143,7 @@ private:
         bool m_destroy;                                                       \
     private:                                                                  \
         typedef elT _WX_LIST_ITEM_TYPE_##liT;                                 \
-        static void DeleteFunction( _WX_DELETEFUNCTIONCONST _WX_LIST_ITEM_TYPE_##liT X );       \
+        static void DeleteFunction( _WX_LIST_ITEM_TYPE_##liT X );             \
     public:                                                                   \
         class compatibility_iterator                                          \
         {                                                                     \