removed copystring function already defined in common wx utilities
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
58782f84f8
commit
977bf6ff42
@ -13,18 +13,6 @@
|
||||
#include "wx/defs.h"
|
||||
#endif
|
||||
|
||||
char *
|
||||
copystring (const char *s)
|
||||
{
|
||||
if (s == NULL) s = "";
|
||||
size_t len = strlen (s) + 1;
|
||||
|
||||
char *news = new char[len];
|
||||
memcpy (news, s, len); // Should be the fastest
|
||||
|
||||
return news;
|
||||
}
|
||||
|
||||
#ifdef __WXMSW__
|
||||
// from filefn.cpp
|
||||
void WXDLLEXPORT wxSplitPath(const char *pszFileName,
|
||||
@ -78,4 +66,4 @@ const char *wxGetTranslation(const char *str)
|
||||
{
|
||||
return str;
|
||||
}
|
||||
#endif // MSW
|
||||
#endif // MSW
|
||||
|
Loading…
Reference in New Issue
Block a user