don't use obsolete functions (mostly copystring() and Count()), remove their documentation (patch 1697956)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -108,9 +108,11 @@ public:
|
||||
virtual void SetAccel(wxAcceleratorEntry *accel);
|
||||
#endif // wxUSE_ACCEL
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_8
|
||||
// compatibility only, use new functions in the new code
|
||||
void SetName(const wxString& str) { SetText(str); }
|
||||
const wxString& GetName() const { return GetText(); }
|
||||
wxDEPRECATED( void SetName(const wxString& str) );
|
||||
wxDEPRECATED( const wxString& GetName() const );
|
||||
#endif // WXWIN_COMPATIBILITY_2_8
|
||||
|
||||
static wxMenuItem *New(wxMenu *parentMenu,
|
||||
int itemid,
|
||||
@@ -148,6 +150,13 @@ private:
|
||||
wxMenuItemBase& operator=(const wxMenuItemBase& item);
|
||||
};
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_8
|
||||
void wxMenuItem::SetName(const wxString &str)
|
||||
{ SetText(str); }
|
||||
const wxString& wxMenuItem::GetName() const
|
||||
{ return GetText(); }
|
||||
#endif // WXWIN_COMPATIBILITY_2_8
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// include the real class declaration
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user