[devhelp/aleksander/book-filters-update: 2/7] keyword-model: minor coding style fixes



commit 4740b78a8dbd4300ff2b3d5c468c3f548793142b
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Sun Sep 29 17:17:12 2013 +0200

    keyword-model: minor coding style fixes
    
    Always declare variables at the beginning of the context.

 src/dh-keyword-model.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/dh-keyword-model.c b/src/dh-keyword-model.c
index 00f1c58..e232a34 100644
--- a/src/dh-keyword-model.c
+++ b/src/dh-keyword-model.c
@@ -440,11 +440,12 @@ keyword_model_search_books (DhKeywordModel  *model,
         GList                 *new_list = NULL, *b;
         gint                   hits = 0;
         gchar                 *page_filename_prefix = NULL;
+        GList                 *keyword_globs;
 
         priv = dh_keyword_model_get_instance_private (model);
 
         /* Compile each keyword into a GPatternSpec if necessary */
-        GList *keyword_globs = dh_globbed_keywords_new (keywords);
+        keyword_globs = dh_globbed_keywords_new (keywords);
 
         if (page_id) {
                 page_filename_prefix = g_strdup_printf("%s.", page_id);


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