]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxMenuITemBase copy ctor decl apparently needed under FreeBSD
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Jan 2000 22:34:48 +0000 (22:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Jan 2000 22:34:48 +0000 (22:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/menuitem.h

index 20f143ed225d02cfd17a37e8fd659d99d711f435..a16e4211716f8225f5cc0373e8a110915f8e8482 100644 (file)
@@ -111,6 +111,12 @@ protected:
 
     // some compilers need a default constructor here, do not remove
     wxMenuItemBase() { }
+
+private:
+    // and, if we have one ctor, compiler won't generate a default copy one, so
+    // declare them ourselves - but don't implement as they shouldn't be used
+    wxMenuItemBase(const wxMenuItemBase& item);
+    wxMenuItemBase& operator=(const wxMenuItemBase& item);
 };
 
 // ----------------------------------------------------------------------------