Quick and dirty fix for building with COMPATIBILITY_2_4 off.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-07-02 17:11:19 +00:00
parent c04b9739f6
commit f526f7526b
6 changed files with 63 additions and 20 deletions

View File

@@ -37,10 +37,6 @@
#include "wx/object.h"
#include "wx/string.h"
// due to circular header dependencies this function has to be declared here
// (normally it's found in utils.h which includes itself list.h...)
extern WXDLLIMPEXP_BASE wxChar* copystring(const wxChar *s);
class WXDLLIMPEXP_BASE wxObjectListNode;
typedef wxObjectListNode wxNode;
@@ -568,12 +564,10 @@ public:
// operations
// makes a copy of the string
wxNode *Add(const wxChar *s)
{ return (wxNode *)wxStringListBase::Append(copystring(s)); }
wxNode *Add(const wxChar *s);
// Append to beginning of list
wxNode *Prepend(const wxChar *s)
{ return (wxNode *)wxStringListBase::Insert(copystring(s)); }
wxNode *Prepend(const wxChar *s);
bool Delete(const wxChar *s);