reverted two previous Julian's changes, they were incorrect

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2003-07-15 11:04:34 +00:00
parent e2b6d07d7a
commit b7e8f408c9

View File

@ -551,13 +551,7 @@ static bool GetRGBFromName(const char *inname, bool *isNone,
return TRUE;
}
#ifdef __WXWINCE__
// TODO: is this right? How come it compiles on other
// platforms?
name = (char*) wxStrdup((wxChar*) inname);
#else
name = wxStrdup(inname);
#endif
name = strdup(inname);
// theRGBRecords[] has no names with spaces, and no grey, but a
// lot of gray...
@ -644,7 +638,7 @@ static const char *ParseColor(const char *data)
{
if ( *r != *q )
continue;
if ( !wxIsspace((int) (*(r - 1))) )
if ( !isspace((int) (*(r - 1))) )
continue;
p = r;
for (;;)