Always initialize variable.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-07-20 19:33:56 +00:00
parent b5f6b52ab3
commit 98fc1d65f9
2 changed files with 4 additions and 2 deletions

View File

@@ -433,7 +433,8 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
if ( tool->IsRadio() )
{
wxToolBarToolsList::compatibility_iterator node;
wxToolBarToolsList::compatibility_iterator node
= wxToolBarToolsList::compatibility_iterator();
if ( pos ) node = m_tools.Item(pos - 1);
while ( node )

View File

@@ -433,7 +433,8 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
if ( tool->IsRadio() )
{
wxToolBarToolsList::compatibility_iterator node;
wxToolBarToolsList::compatibility_iterator node
= wxToolBarToolsList::compatibility_iterator();
if ( pos ) node = m_tools.Item(pos - 1);
while ( node )