X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/338dd992160bf20205743c092b353d96ef7604fb..dd91da4ed1e9d2ba5d3bc2fae64a8e4ea86b5d41:/src/motif/clipbrd.cpp?ds=sidebyside diff --git a/src/motif/clipbrd.cpp b/src/motif/clipbrd.cpp index cc6c5e21b3..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 @@ -37,10 +40,8 @@ #include -#if !USE_SHARED_LIBRARY // IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject) // IMPLEMENT_ABSTRACT_CLASS(wxClipboardClient, wxObject) -#endif static bool gs_clipboardIsOpen = FALSE; @@ -255,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(); } @@ -368,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