[gnome-commander/ConvertWarningsToErrors] Fix gcc warning about variable shadowing



commit 6fae5e7a9113b98420532e9ad0fd598b93336e90
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sat Apr 22 16:38:57 2017 +0200

    Fix gcc warning about variable shadowing

 src/gnome-cmd-convert.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-convert.cc b/src/gnome-cmd-convert.cc
index 3d421f6..c1f9829 100644
--- a/src/gnome-cmd-convert.cc
+++ b/src/gnome-cmd-convert.cc
@@ -200,8 +200,8 @@ gchar *gcmd_convert_sentence_case (gchar *string)
             strncpy (word, utf8_character, g_unichar_to_utf8 (g_unichar_toupper (c), utf8_character));
 
             // Set lowercase the first character of this word if found in the exempt words list
-            for (gint i=0; exempt[i]!=NULL; ++i)
-                if (g_ascii_strncasecmp (exempt[i], word, strlen (exempt[i])) == 0)
+            for (gint ii=0; exempt[ii]!=NULL; ++ii)
+                if (g_ascii_strncasecmp (exempt[ii], word, strlen (exempt[ii])) == 0)
                 {
                     c = g_utf8_get_char (word);
                     strncpy (word, utf8_character, g_unichar_to_utf8 (g_unichar_tolower (c), 
utf8_character));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]