[gnome-builder] snippets: Use N_PROPS instead of LAST_PROP for gobject



commit 26301efab591d3a773d2aa06278d6414a3f8005c
Author: Patrick Griffis <tingping tingping se>
Date:   Mon Dec 14 18:23:08 2015 -0500

    snippets: Use N_PROPS instead of LAST_PROP for gobject
    
    Just slightly clearer what it is used for and is already
    used by many Gnome projects

 data/snippets/gobject.snippets |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/snippets/gobject.snippets b/data/snippets/gobject.snippets
index eba4367..d3b43d7 100644
--- a/data/snippets/gobject.snippets
+++ b/data/snippets/gobject.snippets
@@ -12,10 +12,10 @@ snippet gobject
 
        enum {
                PROP_0,
-               LAST_PROP
+               N_PROPS
        };
 
-       static GParamSpec *properties [LAST_PROP];
+       static GParamSpec *properties [N_PROPS];
 
        $2 *
        $3_new (void)


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