From 98fc1d65f9d8b42a595d561dd8d244dadccc1e13 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sun, 20 Jul 2003 19:33:56 +0000 Subject: [PATCH] Always initialize variable. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/tbargtk.cpp | 3 ++- src/gtk1/tbargtk.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gtk/tbargtk.cpp b/src/gtk/tbargtk.cpp index 5c47efac8b..6adcd35417 100644 --- a/src/gtk/tbargtk.cpp +++ b/src/gtk/tbargtk.cpp @@ -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 ) diff --git a/src/gtk1/tbargtk.cpp b/src/gtk1/tbargtk.cpp index 5c47efac8b..6adcd35417 100644 --- a/src/gtk1/tbargtk.cpp +++ b/src/gtk1/tbargtk.cpp @@ -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 ) -- 2.50.0