[gtksourceview] Do not re-initialize static variables to zero



commit 4bb6518c8363236dcf15d9a912318d0ace3f1a79
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Jun 13 12:13:37 2016 +0200

    Do not re-initialize static variables to zero
    
    static variables are anyway initialized with zero.

 .../words/gtksourcecompletionwordslibrary.c        |    2 +-
 .../words/gtksourcecompletionwordsproposal.c       |    2 +-
 gtksourceview/gtksourcecompletion.c                |    2 +-
 gtksourceview/gtksourcecompletioncontext.c         |    2 +-
 gtksourceview/gtksourcecompletioninfo.c            |    2 +-
 gtksourceview/gtksourcecompletionproposal.c        |    2 +-
 gtksourceview/gtksourcegutterrenderer.c            |    2 +-
 gtksourceview/gtksourcemarkattributes.c            |    2 +-
 gtksourceview/gtksourceundomanager.c               |    2 +-
 gtksourceview/gtksourceview.c                      |    2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c 
b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
index 7c99d6f..375f7e1 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
@@ -37,7 +37,7 @@ struct _GtkSourceCompletionWordsLibraryPrivate
        gboolean locked;
 };
 
-static guint signals[N_SIGNALS] = {0,};
+static guint signals[N_SIGNALS];
 
 G_DEFINE_TYPE_WITH_PRIVATE (GtkSourceCompletionWordsLibrary, gtk_source_completion_words_library, 
G_TYPE_OBJECT)
 
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c 
b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c
index b77da39..a1642ac 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c
@@ -33,7 +33,7 @@ enum
        N_SIGNALS
 };
 
-static guint signals[N_SIGNALS] = {0,};
+static guint signals[N_SIGNALS];
 
 static void gtk_source_completion_proposal_iface_init (gpointer g_iface, gpointer iface_data);
 
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 51fa972..7e4df3d 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -204,7 +204,7 @@ struct _GtkSourceCompletionPrivate
        guint show_icons : 1;
 };
 
-static guint signals[N_SIGNALS] = { 0 };
+static guint signals[N_SIGNALS];
 
 static void    gtk_source_completion_buildable_interface_init (GtkBuildableIface *iface);
 
diff --git a/gtksourceview/gtksourcecompletioncontext.c b/gtksourceview/gtksourcecompletioncontext.c
index ec8fe31..622f26d 100644
--- a/gtksourceview/gtksourcecompletioncontext.c
+++ b/gtksourceview/gtksourcecompletioncontext.c
@@ -95,7 +95,7 @@ enum
        N_SIGNALS
 };
 
-static guint context_signals[N_SIGNALS] = {0,};
+static guint context_signals[N_SIGNALS];
 
 G_DEFINE_TYPE_WITH_PRIVATE (GtkSourceCompletionContext, gtk_source_completion_context, 
G_TYPE_INITIALLY_UNOWNED)
 
diff --git a/gtksourceview/gtksourcecompletioninfo.c b/gtksourceview/gtksourcecompletioninfo.c
index 1814e43..bce193b 100644
--- a/gtksourceview/gtksourcecompletioninfo.c
+++ b/gtksourceview/gtksourcecompletioninfo.c
@@ -82,7 +82,7 @@ enum
        N_SIGNALS
 };
 
-static guint signals[N_SIGNALS] = { 0 };
+static guint signals[N_SIGNALS];
 
 G_DEFINE_TYPE_WITH_PRIVATE (GtkSourceCompletionInfo, gtk_source_completion_info, GTK_TYPE_WINDOW);
 
diff --git a/gtksourceview/gtksourcecompletionproposal.c b/gtksourceview/gtksourcecompletionproposal.c
index 390a657..1a43cb8 100644
--- a/gtksourceview/gtksourcecompletionproposal.c
+++ b/gtksourceview/gtksourcecompletionproposal.c
@@ -53,7 +53,7 @@ enum
        N_SIGNALS
 };
 
-static guint signals[N_SIGNALS] = {0,};
+static guint signals[N_SIGNALS];
 
 typedef GtkSourceCompletionProposalIface GtkSourceCompletionProposalInterface;
 
diff --git a/gtksourceview/gtksourcegutterrenderer.c b/gtksourceview/gtksourcegutterrenderer.c
index bee8922..7e0c787 100644
--- a/gtksourceview/gtksourcegutterrenderer.c
+++ b/gtksourceview/gtksourcegutterrenderer.c
@@ -105,7 +105,7 @@ struct _GtkSourceGutterRendererPrivate
        guint visible : 1;
 };
 
-static guint signals[N_SIGNALS] = {0,};
+static guint signals[N_SIGNALS];
 
 G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GtkSourceGutterRenderer, gtk_source_gutter_renderer, 
G_TYPE_INITIALLY_UNOWNED)
 
diff --git a/gtksourceview/gtksourcemarkattributes.c b/gtksourceview/gtksourcemarkattributes.c
index 0f0c3f8..20b1d75 100644
--- a/gtksourceview/gtksourcemarkattributes.c
+++ b/gtksourceview/gtksourcemarkattributes.c
@@ -111,7 +111,7 @@ enum
        N_SIGNALS
 };
 
-static guint signals[N_SIGNALS] = {0,};
+static guint signals[N_SIGNALS];
 
 static void
 gtk_source_mark_attributes_finalize (GObject *object)
diff --git a/gtksourceview/gtksourceundomanager.c b/gtksourceview/gtksourceundomanager.c
index b5a0780..19aa39c 100644
--- a/gtksourceview/gtksourceundomanager.c
+++ b/gtksourceview/gtksourceundomanager.c
@@ -60,7 +60,7 @@ enum
        N_SIGNALS
 };
 
-static guint signals[N_SIGNALS] = {0,};
+static guint signals[N_SIGNALS];
 
 typedef GtkSourceUndoManagerIface GtkSourceUndoManagerInterface;
 
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index 44daac5..fbee99e 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -215,7 +215,7 @@ struct _MarkCategory
        gint priority;
 };
 
-static guint signals[N_SIGNALS] = { 0 };
+static guint signals[N_SIGNALS];
 
 static void gtk_source_view_buildable_interface_init (GtkBuildableIface *iface);
 


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