[gnome-commander] Fix gcc warning about variable shadowing
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Fix gcc warning about variable shadowing
- Date: Fri, 28 Apr 2017 21:39:01 +0000 (UTC)
commit 576a9f4d98c4c78193a5b35a54d54482434a9a32
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]