// parent's child list.
BeginFind();
wxNode *node = (wxNode *) NULL;
- while ((node = Next()))
+ node = Next();
+ while (node != NULL)
{
wxItemResource *parent = (wxItemResource *)node->Data();
if (parent->GetChildren().Member(item))
parent->GetChildren().DeleteObject(item);
break;
}
+ node = Next();
}
delete item;
default:
ungetc(ch, fd);
return TRUE;
-
+
}
}
return FALSE;
wxChar *name = copystring(wxConvCurrent->cMB2WX(wxResourceBuffer));
wxGetResourceToken(fd);
wxChar *value = copystring(wxConvCurrent->cMB2WX(wxResourceBuffer));
- if (wxIsalpha(value[0]))
+ if (wxIsdigit(value[0]))
{
int val = (int)wxAtol(value);
wxResourceAddIdentifier(name, val, table);
{ _T("wxTE_READONLY"), wxTE_READONLY},
{ _T("wxTE_PROCESS_ENTER"), wxTE_PROCESS_ENTER},
{ _T("wxTE_MULTILINE"), wxTE_MULTILINE},
+ { _T("wxTE_NO_VSCROLL"), wxTE_NO_VSCROLL},
/* wxRadioBox/wxRadioButton */
{ _T("wxRB_GROUP"), wxRB_GROUP },
{ _T("wxTRANSPARENT_WINDOW"), wxTRANSPARENT_WINDOW},
{ _T("wxNO_BORDER"), wxNO_BORDER},
{ _T("wxCLIP_CHILDREN"), wxCLIP_CHILDREN},
+ { _T("wxTAB_TRAVERSAL"), 0}, // Compatibility only
{ _T("wxTINY_CAPTION_HORIZ"), wxTINY_CAPTION_HORIZ},
{ _T("wxTINY_CAPTION_VERT"), wxTINY_CAPTION_VERT},
int i = 0;
wxChar *word;
long bitList = 0;
- while ((word = wxResourceParseWord(WXSTRINGCAST bitListString, &i)))
+ word = wxResourceParseWord(WXSTRINGCAST bitListString, &i);
+ while (word != NULL)
{
bool found = FALSE;
int j;
wxLogWarning(_("Unrecognized style %s whilst parsing resource."), word);
return 0;
}
+ word = wxResourceParseWord(WXSTRINGCAST bitListString, &i);
}
return bitList;
}
if (!table)
table = wxDefaultResourceTable;
- table->identifiers.Put(name, (wxObject *)value);
+ table->identifiers.Put(name, (wxObject *)(long)value);
return TRUE;
}
if (!table)
table = wxDefaultResourceTable;
- return (int)table->identifiers.Get(name);
+ return (int)(long)table->identifiers.Get(name);
}
/*
default:
ungetc_string();
return TRUE;
-
+
}
}
return FALSE;
wxChar *name = copystring(wxConvCurrent->cMB2WX(wxResourceBuffer));
wxGetResourceTokenString(s);
wxChar *value = copystring(wxConvCurrent->cMB2WX(wxResourceBuffer));
- if (wxIsalpha(value[0]))
+ if (wxIsdigit(value[0]))
{
int val = (int)wxAtol(value);
wxResourceAddIdentifier(name, val, table);