X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e107d0536ca8d441a54420a07fbee8e02c532269..c6e62f74fcac5b62889b59e7ce7a41d0ce884d7b:/src/common/serbase.cpp diff --git a/src/common/serbase.cpp b/src/common/serbase.cpp index 5bc2ae125e..cea2ce5efb 100644 --- a/src/common/serbase.cpp +++ b/src/common/serbase.cpp @@ -24,17 +24,16 @@ #pragma hdrstop #endif -#ifdef wxUSE_SERIAL +#if wxUSE_SERIAL // ---------------------------------------------------------------------------- // wxObject_Serialize // ---------------------------------------------------------------------------- -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxObject_Serialize,wxObject) + IMPLEMENT_SERIAL_CLASS(wxList, wxObject) IMPLEMENT_SERIAL_CLASS(wxHashTable, wxObject) -#endif void WXSERIAL(wxList)::StoreObject(wxObjectOutputStream& s) { @@ -57,7 +56,7 @@ void WXSERIAL(wxList)::StoreObject(wxObjectOutputStream& s) if (lst_object->GetKeyType() == wxKEY_INTEGER) { while (node) { - data_s.Write32(node->GetKeyInteger()); + data_s.Write32((size_t)node->GetKeyInteger()); node = node->Next(); } } else {