]> git.saurik.com Git - wxWidgets.git/commitdiff
use wxStrdupA() instead of #ifdef's around strdup()
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Oct 2004 21:45:23 +0000 (21:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Oct 2004 21:45:23 +0000 (21:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/xpmdecod.cpp

index 5d873d8ee93f9acc2d2a11bf4fcbad7c9ad0b295..e1b62cf09d63c21de40bed0f01b84057a3616567 100644 (file)
@@ -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...