minor WXWIN_COMPATIBILITY_2_2 fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-07-02 09:38:35 +00:00
parent 463abc6470
commit 62e2654261
3 changed files with 7 additions and 4 deletions

View File

@@ -80,11 +80,11 @@ public:
bool HasClientUntypedData() const
{ return m_clientDataItemsType == wxClientData_Void; }
#if WXWIN_COMPATIBILITY_2
#if WXWIN_COMPATIBILITY_2_2
// compatibility - these functions are deprecated, use the new ones
// instead
int Number() const { return GetCount(); }
#endif // WXWIN_COMPATIBILITY_2
#endif // WXWIN_COMPATIBILITY_2_2
#ifdef __WXMAC_X__
virtual ~wxItemContainer() {} // Added min for Mac X

View File

@@ -300,7 +300,10 @@
// compatibility code
#if !wxUSE_GUI
#undef WXWIN_COMPATIBILITY_2
#undef WXWIN_COMPATIBILITY_2_2
#define WXWIN_COMPATIBILITY_2 0
#define WXWIN_COMPATIBILITY_2_2 0
#endif // !GUI
// ============================================================================

View File

@@ -87,11 +87,11 @@ public:
int GetNextItem(int item, wxDirection dir, long style) const;
// for compatibility only, don't use these methods in new code!
#ifdef WXWIN_COMPATIBILITY_2
#ifdef WXWIN_COMPATIBILITY_2_2
int Number() const { return GetCount(); }
wxString GetLabel(int n) const { return GetString(n); }
void SetLabel(int n, const wxString& label) { SetString(n, label); }
#endif // WXWIN_COMPATIBILITY_2
#endif // WXWIN_COMPATIBILITY_2_2
};
#if defined(__WXUNIVERSAL__)