X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b59cdbfaf7df79499424c92ff6177736429ff8a..bedaf53eaf4e2a860b34d4ff5e0b1928ce8fa5c9:/include/wx/menuitem.h?ds=sidebyside diff --git a/include/wx/menuitem.h b/include/wx/menuitem.h index 20f143ed22..a16e421171 100644 --- a/include/wx/menuitem.h +++ b/include/wx/menuitem.h @@ -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); }; // ----------------------------------------------------------------------------