From: Mattia Barbon <mbarbon@cpan.org>
Date: Sun, 20 Jul 2003 19:33:56 +0000 (+0000)
Subject:   Always initialize variable.
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/98fc1d65f9d8b42a595d561dd8d244dadccc1e13

  Always initialize variable.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

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 )