From 8d3166e8acbbc8d351bdc94e507ef5712ffbfd37 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 19 Feb 2009 05:34:03 +0000 Subject: [PATCH] fix for IBM xlC 8, it can't compile Clone() if wxDataFormat is not defined git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/clipbrd.h | 3 +-- src/common/clipcmn.cpp | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/wx/clipbrd.h b/include/wx/clipbrd.h index 9d1c67cd62..3376472381 100644 --- a/include/wx/clipbrd.h +++ b/include/wx/clipbrd.h @@ -111,12 +111,11 @@ public: bool SupportsFormat(const wxDataFormat& format) const; void AddFormat(const wxDataFormat& format); - virtual wxEvent *Clone() const { return new wxClipboardEvent(*this); } + virtual wxEvent *Clone() const; protected: wxVector m_formats; -private: DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxClipboardEvent) }; diff --git a/src/common/clipcmn.cpp b/src/common/clipcmn.cpp index baa2db4a07..133c18967a 100644 --- a/src/common/clipcmn.cpp +++ b/src/common/clipcmn.cpp @@ -54,6 +54,11 @@ wxClipboardEvent::wxClipboardEvent(const wxClipboardEvent& event) { } +wxEvent* wxClipboardEvent::Clone() const +{ + return new wxClipboardEvent(*this); +} + bool wxClipboardEvent::SupportsFormat( const wxDataFormat &format ) const { #ifdef __WXGTK20__ -- 2.45.2