From efebabb7ffdccdfd1400739cdbec6dc80be8a49c Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 29 May 2008 04:26:29 +0000 Subject: [PATCH] mark long-deprecated ctor as such git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/menuitem.h | 6 +++++- include/wx/msw/menuitem.h | 6 +++++- src/gtk/menu.cpp | 2 ++ src/msw/menuitem.cpp | 2 ++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/include/wx/gtk/menuitem.h b/include/wx/gtk/menuitem.h index 4133cc5e83..d8cbbd1798 100644 --- a/include/wx/gtk/menuitem.h +++ b/include/wx/gtk/menuitem.h @@ -53,13 +53,17 @@ public: // and in the hotkey which is used to set given pointer static wxString GTKProcessMenuItemLabel(const wxString& str, wxString *hotKey); +#if WXWIN_COMPATIBILITY_2_8 // compatibility only, don't use in new code + wxDEPRECATED( wxMenuItem(wxMenu *parentMenu, int id, const wxString& text, const wxString& help, bool isCheckable, - wxMenu *subMenu = (wxMenu *)NULL); + wxMenu *subMenu = NULL) + ); +#endif private: // common part of all ctors diff --git a/include/wx/msw/menuitem.h b/include/wx/msw/menuitem.h index ed147b7cca..4518daf143 100644 --- a/include/wx/msw/menuitem.h +++ b/include/wx/msw/menuitem.h @@ -64,13 +64,17 @@ public: void SetRadioGroupStart(int start); void SetRadioGroupEnd(int end); +#if WXWIN_COMPATIBILITY_2_8 // compatibility only, don't use in new code + wxDEPRECATED( wxMenuItem(wxMenu *parentMenu, int id, const wxString& text, const wxString& help, bool isCheckable, - wxMenu *subMenu = (wxMenu *)NULL); + wxMenu *subMenu = NULL) + ); +#endif private: // common part of all ctors diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 4f203d694d..153a5ce3d9 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -607,6 +607,7 @@ wxMenuItem::wxMenuItem(wxMenu *parentMenu, Init(text); } +#if WXWIN_COMPATIBILITY_2_8 wxMenuItem::wxMenuItem(wxMenu *parentMenu, int id, const wxString& text, @@ -618,6 +619,7 @@ wxMenuItem::wxMenuItem(wxMenu *parentMenu, { Init(text); } +#endif void wxMenuItem::Init(const wxString& text) { diff --git a/src/msw/menuitem.cpp b/src/msw/menuitem.cpp index d5ef1dc4e7..d1ecba4332 100644 --- a/src/msw/menuitem.cpp +++ b/src/msw/menuitem.cpp @@ -137,6 +137,7 @@ wxMenuItem::wxMenuItem(wxMenu *pParentMenu, Init(); } +#if WXWIN_COMPATIBILITY_2_8 wxMenuItem::wxMenuItem(wxMenu *parentMenu, int id, const wxString& text, @@ -151,6 +152,7 @@ wxMenuItem::wxMenuItem(wxMenu *parentMenu, { Init(); } +#endif void wxMenuItem::Init() { -- 2.45.2