[gnome-commander] Make variable static



commit 8648149051db5b549e158c5016e6340e1767edee
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sat Aug 5 11:12:25 2017 +0200

    Make variable static

 src/gnome-cmd-advrename-profile-component.cc |    2 +-
 src/gnome-cmd-data.cc                        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-advrename-profile-component.cc b/src/gnome-cmd-advrename-profile-component.cc
index efac3cd..9aad614 100644
--- a/src/gnome-cmd-advrename-profile-component.cc
+++ b/src/gnome-cmd-advrename-profile-component.cc
@@ -908,7 +908,6 @@ static void gnome_cmd_advrename_profile_component_init (GnomeCmdAdvrenameProfile
         gtk_box_pack_start (GTK_BOX (vbox), align, FALSE, FALSE, 0);
 
         {
-            GtkWidget *bbox;
             GtkWidget *local_vbox = gtk_vbox_new (FALSE, 6);
             gtk_container_add (GTK_CONTAINER (align), local_vbox);
 
@@ -986,6 +985,7 @@ static void gnome_cmd_advrename_profile_component_init (GnomeCmdAdvrenameProfile
 
     // Regex
     {
+        GtkWidget *bbox;
         str = g_strdup_printf ("<b>%s</b>", _("Regex replacing"));
         label = gtk_label_new (str);
         g_free (str);
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 7230463..5fc1b3c 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -1773,7 +1773,7 @@ static void save_fav_apps (const gchar *fname)
                     /* Are the names equal? -> Change the name */
                     if (!strcmp(group_name_to_test, group_name))
                     {
-                        int name_occurence = 2;
+                        static int name_occurence = 2;
                         gchar *new_name = g_strdup_printf("%s_%d",
                                             gnome_cmd_app_get_name(app2),
                                             name_occurence);


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