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:
@@ -149,7 +149,7 @@ public:
|
||||
{
|
||||
wxASSERT_MSG( !IsEmpty(),
|
||||
_T("wxArrayString: index out of bounds") );
|
||||
return Item(Count() - 1);
|
||||
return Item(GetCount() - 1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -589,8 +589,8 @@ public:
|
||||
virtual void AddFilesToMenu(wxMenu* menu); // Single menu
|
||||
|
||||
// Accessors
|
||||
virtual wxString GetHistoryFile(size_t i) const;
|
||||
virtual size_t GetCount() const { return m_fileHistoryN; }
|
||||
virtual wxString GetHistoryFile(size_t i) const { return m_fileHistory[i]; }
|
||||
virtual size_t GetCount() const { return m_fileHistory.GetCount(); }
|
||||
|
||||
const wxList& GetMenus() const { return m_fileMenus; }
|
||||
|
||||
@@ -605,11 +605,11 @@ public:
|
||||
|
||||
protected:
|
||||
// Last n files
|
||||
wxChar** m_fileHistory;
|
||||
// Number of files saved
|
||||
size_t m_fileHistoryN;
|
||||
wxArrayString m_fileHistory;
|
||||
|
||||
// Menus to maintain (may need several for an MDI app)
|
||||
wxList m_fileMenus;
|
||||
|
||||
// Max files to maintain
|
||||
size_t m_fileMaxFiles;
|
||||
|
||||
|
||||
@@ -287,7 +287,7 @@ public: \
|
||||
T& Item(size_t uiIndex) const \
|
||||
{ return (T&)/*const cast*/base::operator[](uiIndex); } \
|
||||
T& Last() const \
|
||||
{ return Item(Count() - 1); } \
|
||||
{ return Item(GetCount() - 1); } \
|
||||
\
|
||||
int Index(T e, bool bFromEnd = false) const \
|
||||
{ return base::Index(e, bFromEnd); } \
|
||||
@@ -336,7 +336,7 @@ public: \
|
||||
T& Item(size_t uiIndex) const \
|
||||
{ return (T&)(base::operator[](uiIndex)); } \
|
||||
T& Last() const \
|
||||
{ return (T&)(base::operator[](Count() - 1)); } \
|
||||
{ return (T&)(base::operator[](GetCount() - 1)); } \
|
||||
\
|
||||
int Index(T lItem, bool bFromEnd = false) const \
|
||||
{ return base::Index((base_type)lItem, bFromEnd); } \
|
||||
|
||||
@@ -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
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
@@ -221,7 +221,7 @@ private:
|
||||
|
||||
// Returns internal number of pages which can be different from
|
||||
// GetPageCount() while performing a page insertion or removal.
|
||||
size_t DoInternalGetPageCount() const { return m_treeIds.Count(); }
|
||||
size_t DoInternalGetPageCount() const { return m_treeIds.GetCount(); }
|
||||
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
Reference in New Issue
Block a user