data_s.Write8(info.children.Number());
}
-void wxObjectOutputStream::AddChildren(wxObject *obj)
+void wxObjectOutputStream::AddChild(wxObject *obj)
{
wxObjectStreamInfo *info;
sig[WXOBJ_BEG_LEN] = 0;
if (wxString(sig) != WXOBJ_BEGIN)
return FALSE;
- info->object = wxCreateDynamicObject((char *)data_s.ReadString());
+ info->object = wxCreateDynamicObject( WXSTRINGCAST data_s.ReadString());
info->object_name = data_s.ReadString();
info->n_children = data_s.Read8();
info->children = wxList();