From: Vadim Zeitlin Date: Sun, 15 Sep 2002 15:21:52 +0000 (+0000) Subject: compilation fix for !MSVC X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4769a5627519643ba2cfd8be8e329f806901d025 compilation fix for !MSVC git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index 836a79ee2f..8777634b70 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -475,6 +475,7 @@ bool wxToolBar::Realize() // First, add the bitmap: we use one bitmap for all toolbar buttons // ---------------------------------------------------------------- + wxToolBarToolsList::Node *node; int bitmapId = 0; wxSize sizeBmp; @@ -531,9 +532,7 @@ bool wxToolBar::Realize() // the number of buttons (not separators) int nButtons = 0; - for ( wxToolBarToolsList::Node *node = m_tools.GetFirst(); - node; - node = node->GetNext() ) + for ( node = m_tools.GetFirst(); node; node = node->GetNext() ) { wxToolBarToolBase *tool = node->GetData(); if ( tool->IsButton() ) @@ -655,9 +654,7 @@ bool wxToolBar::Realize() bool lastWasRadio = FALSE; int i = 0; - for ( wxToolBarToolsList::Node *node = m_tools.GetFirst(); - node; - node = node->GetNext() ) + for ( node = m_tools.GetFirst(); node; node = node->GetNext() ) { wxToolBarToolBase *tool = node->GetData();