Revision: 7214
http://svn.sourceforge.net/mahogany/?rev=7214&view=rev
Author: vadz
Date: 2007-03-21 17:12:10 -0700 (Wed, 21 Mar 2007)
Log Message:
-----------
removed unneeded strutil_strdup() overloads which only cause trouble with
latest wx HEAD
Modified Paths:
--------------
trunk/M/include/strutil.h
trunk/M/src/util/strutil.cpp
Modified: trunk/M/include/strutil.h
===================================================================
--- trunk/M/include/strutil.h 2007-02-24 22:07:50 UTC (rev 7213)
+++ trunk/M/include/strutil.h 2007-03-22 00:12:10 UTC (rev 7214)
@@ -126,18 +126,8 @@
@param the string to duplicate
@return the newly allocated string, must be deleted[] by caller
*/
-#if wxUSE_UNICODE
-wxChar * strutil_strdup(const wxChar *in);
-#endif
char * strutil_strdup(const char *in);
-/** Duplicate a string.
-
- @param the string to duplicate
- @return the newly allocated string, must be deleted[] by caller
-*/
-wxChar *strutil_strdup(String const &in);
-
/**
This takes the string and splits it into tokens delimited by the
given delimiters, by using the strsep() function. The tokens are
Modified: trunk/M/src/util/strutil.cpp
===================================================================
--- trunk/M/src/util/strutil.cpp 2007-02-24 22:07:50 UTC (rev 7213)
+++ trunk/M/src/util/strutil.cpp 2007-03-22 00:12:10 UTC (rev 7214)
@@ -203,16 +203,6 @@
return String(buffer);
}
-#if wxUSE_UNICODE
-wxChar *
-strutil_strdup(const wxChar *in)
-{
- wxChar *cptr = new wxChar[wxStrlen(in)+1];
- wxStrcpy(cptr,in);
- return cptr;
-}
-#endif
-
char *
strutil_strdup(const char *in)
{
@@ -221,12 +211,6 @@
return cptr;
}
-wxChar *
-strutil_strdup(String const &in)
-{
- return strutil_strdup(in.c_str());
-}
-
char *
strutil_strsep(char **stringp, const char *delim)
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates