X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0df4f2ffa0c351e509715d8e870ff516bcc492cb..0e878cfcc6486c7903ae89b316bc71700320199d:/src/motif/clipbrd.cpp diff --git a/src/motif/clipbrd.cpp b/src/motif/clipbrd.cpp index 0ee8acb958..9bd9307194 100644 --- a/src/motif/clipbrd.cpp +++ b/src/motif/clipbrd.cpp @@ -26,6 +26,9 @@ #include "wx/clipbrd.h" #include "wx/dataobj.h" +#include "wx/listimpl.cpp" +WX_DEFINE_LIST(wxDataObjectList); + #ifdef __VMS__ #pragma message disable nosimpint #endif @@ -253,12 +256,12 @@ wxClipboard::~wxClipboard() void wxClipboard::Clear() { - wxNode* node = m_data.First(); + wxDataObjectList::Node* node = m_data.GetFirst(); while (node) { - wxDataObject* data = (wxDataObject*) node->Data(); + wxDataObject* data = node->GetData(); delete data; - node = node->Next(); + node = node->GetNext(); } m_data.Clear(); }