X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/debe6624c1e9d4bf3243381153d1e173c849bcd8..7b124d5404c31d9462da3ea587a7f4d3d0dce41e:/src/common/list.cpp?ds=sidebyside diff --git a/src/common/list.cpp b/src/common/list.cpp index 728c8c483d..c36e7f7953 100644 --- a/src/common/list.cpp +++ b/src/common/list.cpp @@ -174,7 +174,7 @@ wxList::wxList (wxObject * first_one...) { wxObject *object = va_arg (ap, wxObject *); // if (object == NULL) // Doesn't work in Windows -- segment is non-zero for NULL! -#ifdef __WINDOWS__ +#ifdef __WXMSW__ if ((int) object == 0) #else if ((long) object == 0) @@ -210,40 +210,6 @@ wxList::~wxList (void) } } -#ifdef USE_STORABLE_CLASSES -wxList::wxList( istream &stream, char *WXUNUSED(data) ) -{ - char buf[200]; - unsigned int num; - stream.read( (char*)(&num), sizeof(num) ); - for (unsigned int i = 0; i < num; i++) - { - int len; - stream.read( (char*)(&len), sizeof(len) ); - stream.read( (char*)(&buf), len ); - buf[len] = 0; - Append( wxCreateStoredObject( buf, stream, NULL ) ); - }; -}; - -void wxList::StoreObject( ostream &stream ) -{ - unsigned int num = Number(); - stream.write( (char*)(&num), sizeof(num) ); - wxNode *node = First(); - while (node) - { - wxObject *obj = (wxObject*) node->Data(); - wxClassInfo *obj_info = obj->GetClassInfo(); - int len = strlen(obj_info->className); - stream.write( (char*)(&len), sizeof(len) ); - stream.write( obj_info->className, len ); - obj->StoreObject( stream ); - node = node->Next(); - }; -}; -#endif - wxNode *wxList::Append(wxObject *object) { wxNode *node = new wxNode(this, last_node, NULL, object); @@ -525,7 +491,7 @@ wxStringList::wxStringList (const char *first...) { char *s = va_arg (ap, char *); // if (s == NULL) -#ifdef __WINDOWS__ +#ifdef __WXMSW__ if ((int) s == 0) #else if ((long) s == 0)