X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..9bb50fd0b04c824fc7ba14c0dc4ba4a2a9a1e6ad:/src/motif/clipbrd.cpp?ds=sidebyside diff --git a/src/motif/clipbrd.cpp b/src/motif/clipbrd.cpp index 4af95a45ad..7b13ed0d2b 100644 --- a/src/motif/clipbrd.cpp +++ b/src/motif/clipbrd.cpp @@ -176,13 +176,16 @@ struct wxDataIdToDataObject WX_DEFINE_LIST(wxDataObjectList); WX_DEFINE_LIST(wxDataIdToDataObjectList); +extern "C" +{ #if wxCHECK_LESSTIF() static void wxClipboardCallback( Widget widget, int* data_id, int* priv, int* reason ); -#else +#else // Motif static void wxClipboardCallback( Widget widget, long* data_id, long* priv, int* reason ); -#endif +#endif // Less/Motif +} IMPLEMENT_DYNAMIC_CLASS(wxClipboard,wxObject) @@ -208,7 +211,9 @@ void wxClipboard::Clear() for( wxDataIdToDataObjectList::compatibility_iterator node2 = m_idToObject.GetFirst(); node2; node2 = node2->GetNext() ) - delete node->GetData(); + { + delete node2->GetData(); + } m_idToObject.Clear(); }