]> git.saurik.com Git - wxWidgets.git/commitdiff
Always initialize variable.
authorMattia Barbon <mbarbon@cpan.org>
Sun, 20 Jul 2003 19:33:56 +0000 (19:33 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 20 Jul 2003 19:33:56 +0000 (19:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/tbargtk.cpp
src/gtk1/tbargtk.cpp

index 5c47efac8b6a86b30cf8f51a55483d26b24c085f..6adcd35417cf48a9857387e6bde01ae7a2369981 100644 (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 )
index 5c47efac8b6a86b30cf8f51a55483d26b24c085f..6adcd35417cf48a9857387e6bde01ae7a2369981 100644 (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 )