X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..973ac5bbb2ca39f0f3e21b85c1c130d2215f1552:/src/motif/clipbrd.cpp diff --git a/src/motif/clipbrd.cpp b/src/motif/clipbrd.cpp index 41afb324d3..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(); } @@ -366,10 +369,14 @@ bool wxClipboard::GetData( wxDataObject& data ) */ default: { - return FALSE; +#ifndef __VMS + // VMS complains that this statement is/causes unreachability + return FALSE; +#endif } } - return FALSE; + + return FALSE; } #if 0