fixes for deprecated warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-20 14:01:00 +00:00
parent 284fa852b4
commit 2d75caaa6d
5 changed files with 23 additions and 18 deletions

View File

@@ -351,11 +351,14 @@ public:
void SetItemSelectedImage(const wxTreeItemId& item, int image)
{ SetItemImage(item, image, wxTreeItemIcon_Selected); }
// use the versions taking wxTreeItemIdValue cookies
// use the versions taking wxTreeItemIdValue cookies (note that
// GetNextChild() is not inside wxDEPRECATED on purpose, as otherwise we
// get twice as many warnings without any added benefit: it is always used
// with GetFirstChild() anyhow)
wxDEPRECATED( wxTreeItemId GetFirstChild(const wxTreeItemId& item,
long& cookie) const );
wxDEPRECATED( wxTreeItemId GetNextChild(const wxTreeItemId& item,
long& cookie) const );
wxTreeItemId GetNextChild(const wxTreeItemId& item,
long& cookie) const;
#endif // WXWIN_COMPATIBILITY_2_4