From: Vadim Zeitlin Date: Sat, 9 Oct 2004 21:45:23 +0000 (+0000) Subject: use wxStrdupA() instead of #ifdef's around strdup() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/88135789061a40481bb6f0970ea362238c50e9a5?ds=inline use wxStrdupA() instead of #ifdef's around strdup() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/xpmdecod.cpp b/src/common/xpmdecod.cpp index 5d873d8ee9..e1b62cf09d 100644 --- a/src/common/xpmdecod.cpp +++ b/src/common/xpmdecod.cpp @@ -550,11 +550,7 @@ static bool GetRGBFromName(const char *inname, bool *isNone, return true; } -#ifdef __WXWINCE__ - name = _strdup(inname); -#else - name = strdup(inname); -#endif + name = wxStrdupA(inname); // theRGBRecords[] has no names with spaces, and no grey, but a // lot of gray...