]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for IBM xlC 8, it can't compile Clone() if wxDataFormat is not defined
authorPaul Cornett <paulcor@bullseye.com>
Thu, 19 Feb 2009 05:34:03 +0000 (05:34 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 19 Feb 2009 05:34:03 +0000 (05:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/clipbrd.h
src/common/clipcmn.cpp

index 9d1c67cd622029ce07734da4d0fa389a813a5e89..3376472381886c8563c580895232f4fc345e2296 100644 (file)
@@ -111,12 +111,11 @@ public:
     bool SupportsFormat(const wxDataFormat& format) const;
     void AddFormat(const wxDataFormat& format);
 
     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;
 
 
 protected:
     wxVector<wxDataFormat> m_formats;
 
-private:
     DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxClipboardEvent)
 };
 
     DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxClipboardEvent)
 };
 
index baa2db4a07f49b707418d5ab5918512b6774c50d..133c18967a10edd0ab8c9524dcfb87a7021896bf 100644 (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__
 bool wxClipboardEvent::SupportsFormat( const wxDataFormat &format ) const
 {
 #ifdef __WXGTK20__