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:
@@ -433,7 +433,8 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
|
|||||||
|
|
||||||
if ( tool->IsRadio() )
|
if ( tool->IsRadio() )
|
||||||
{
|
{
|
||||||
wxToolBarToolsList::compatibility_iterator node;
|
wxToolBarToolsList::compatibility_iterator node
|
||||||
|
= wxToolBarToolsList::compatibility_iterator();
|
||||||
if ( pos ) node = m_tools.Item(pos - 1);
|
if ( pos ) node = m_tools.Item(pos - 1);
|
||||||
|
|
||||||
while ( node )
|
while ( node )
|
||||||
|
@@ -433,7 +433,8 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
|
|||||||
|
|
||||||
if ( tool->IsRadio() )
|
if ( tool->IsRadio() )
|
||||||
{
|
{
|
||||||
wxToolBarToolsList::compatibility_iterator node;
|
wxToolBarToolsList::compatibility_iterator node
|
||||||
|
= wxToolBarToolsList::compatibility_iterator();
|
||||||
if ( pos ) node = m_tools.Item(pos - 1);
|
if ( pos ) node = m_tools.Item(pos - 1);
|
||||||
|
|
||||||
while ( node )
|
while ( node )
|
||||||
|
Reference in New Issue
Block a user