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
This commit is contained in:
Paul Cornett 2009-02-19 05:34:03 +00:00
parent e8f9c7d1b0
commit 8d3166e8ac
2 changed files with 6 additions and 2 deletions

View File

@ -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<wxDataFormat> m_formats;
private:
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxClipboardEvent)
};

View File

@ -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__