From: Vadim Zeitlin Date: Tue, 6 Jul 2004 16:55:01 +0000 (+0000) Subject: blind compilation fix for wxUSE_STL==1 (bug 985662) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/feef1ecf072d77d9b5d66a347891efb9c5b16bb6 blind compilation fix for wxUSE_STL==1 (bug 985662) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 45d4fbf8a0..6d6c034217 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -2437,14 +2437,15 @@ void wxWindowBase::DoMoveInTabOrder(wxWindow *win, MoveKind move) // unfortunately, when wxUSE_STL == 1 DetachNode() is not implemented so we // can't just move the node around - siblings.DeleteObject(this); - if ( move == MoveBefore || ((i = i->GetNext()) != NULL) ) + wxWindow *self = (wxWindow *)this; + siblings.DeleteObject(self); + if ( move == MoveBefore || ((i = i->GetNext()) != siblings.end()) ) { - siblings.Insert(i, this); + siblings.Insert(i, self); } else // MoveAfter and win was the last sibling { - siblings.Append(this); + siblings.Append(self); } }