From 81d6a50747ebef6768d49f1fb69c96ff753e843c Mon Sep 17 00:00:00 2001 From: Jouk Jansen Date: Thu, 11 Sep 2008 06:53:02 +0000 Subject: [PATCH] rename variable which was redefined inside a loop git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/filectrl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gtk/filectrl.cpp b/src/gtk/filectrl.cpp index d4ff4dcdf9..8be3759997 100644 --- a/src/gtk/filectrl.cpp +++ b/src/gtk/filectrl.cpp @@ -147,15 +147,15 @@ void wxGtkFileChooser::SetWildcard( const wxString& wildCard ) wxStringTokenizer exttok( wildFilters[n], wxT( ";" ) ); - int n = 1; + int n1 = 1; while ( exttok.HasMoreTokens() ) { wxString token = exttok.GetNextToken(); gtk_file_filter_add_pattern( filter, wxGTK_CONV_SYS( token ) ); - if (n == 1) + if (n1 == 1) m_wildcards.Add( token ); // Only add first pattern to list, used later when saving - n++; + n1++; } gtk_file_chooser_add_filter( chooser, filter ); -- 2.47.2