Member() should be available in all list classes, not just specially crafted
list of wxObjects (wxList).
See #3616.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65789
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual nodetype *Find(const wxListKey& key) const \
{ return (nodetype *)wxListBase::Find(key); } \
\
+ bool Member(const Tbase *object) const \
+ { return Find(object) != NULL; } \
+ \
int IndexOf(Tbase *object) const \
{ return wxListBase::IndexOf(object); } \
\
// compatibility methods
void Sort(wxSortCompareFunction compfunc) { wxListBase::Sort(compfunc); }
- bool Member(wxObject *object) const { return Find(object) != NULL; }
#endif // !wxUSE_STL
};
if ( currentMouseWindow->HandleWindowEvent(wxevent) )
{
- if ((currentMouseWindowParent != NULL) &&
- (currentMouseWindowParent->GetChildren().Find(currentMouseWindow) == NULL))
+ if ( currentMouseWindowParent &&
+ !currentMouseWindowParent->GetChildren().Member(currentMouseWindow) )
currentMouseWindow = NULL;
result = noErr;