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:
@@ -111,12 +111,11 @@ public:
|
|||||||
bool SupportsFormat(const wxDataFormat& format) const;
|
bool SupportsFormat(const wxDataFormat& format) const;
|
||||||
void AddFormat(const wxDataFormat& format);
|
void AddFormat(const wxDataFormat& format);
|
||||||
|
|
||||||
virtual wxEvent *Clone() const { return new wxClipboardEvent(*this); }
|
virtual wxEvent *Clone() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxVector<wxDataFormat> m_formats;
|
wxVector<wxDataFormat> m_formats;
|
||||||
|
|
||||||
private:
|
|
||||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxClipboardEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxClipboardEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -54,6 +54,11 @@ wxClipboardEvent::wxClipboardEvent(const wxClipboardEvent& event)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxEvent* wxClipboardEvent::Clone() const
|
||||||
|
{
|
||||||
|
return new wxClipboardEvent(*this);
|
||||||
|
}
|
||||||
|
|
||||||
bool wxClipboardEvent::SupportsFormat( const wxDataFormat &format ) const
|
bool wxClipboardEvent::SupportsFormat( const wxDataFormat &format ) const
|
||||||
{
|
{
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
|
Reference in New Issue
Block a user