fixes for gcc 3.x -Wshadow warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-10-17 16:43:43 +00:00
parent 5b7745fa47
commit 6af4efb2f9
2 changed files with 11 additions and 7 deletions

View File

@@ -235,7 +235,7 @@ public:
int Number() const { return GetCount(); }
wxNode *First() const { return (wxNode *)GetFirst(); }
wxNode *Last() const { return (wxNode *)GetLast(); }
wxNode *Nth(size_t index) const { return (wxNode *)Item(index); }
wxNode *Nth(size_t n) const { return (wxNode *)Item(n); }
#endif // wxLIST_COMPATIBILITY
protected:
@@ -274,8 +274,12 @@ protected:
wxNodeBase *Item(size_t index) const;
// get the list item's data
void *operator[](size_t index) const
{ wxNodeBase *node = Item(index); return node ? node->GetData() : (wxNodeBase*)NULL; }
void *operator[](size_t n) const
{
wxNodeBase *node = Item(n);
return node ? node->GetData() : (wxNodeBase *)NULL;
}
// operations
// append to end of list