Make wxCocoa work with wxUSE_STL==1:

Use compatibility_iterator instead of Node and Erase instead of DeleteNode


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2004-03-26 03:11:51 +00:00
parent 4263de1e05
commit 7ce8248bc6
2 changed files with 7 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ protected:
bool CocoaUnwindStackAndTakeFocus();
inline bool CocoaTakeFocus()
{
wxCocoaDCStack::Node *node = sm_cocoaDCStack.GetFirst();
wxCocoaDCStack::compatibility_iterator node = sm_cocoaDCStack.GetFirst();
if(node && (node->GetData() == this))
return true;
return CocoaUnwindStackAndTakeFocus();