mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-05 23:48:44 +02:00
Drop trailing semi-colon from G_DEFINE_ macro
It's unnecessary, and only adds visual noise; we have been fairly inconsistent in the past, but the semi-colon-less version clearly dominates in the code base. https://bugzilla.gnome.org/show_bug.cgi?id=669355
This commit is contained in:
committed by
Philip Withnall
parent
fb7d2184a6
commit
f952fdf3fc
@@ -47,7 +47,7 @@ typedef struct {
|
||||
#define MY_TEST_GET_CLASS(test) (G_TYPE_INSTANCE_GET_CLASS ((test), G_TYPE_TEST, GTestClass))
|
||||
|
||||
static GType my_test_get_type (void);
|
||||
G_DEFINE_TYPE (GTest, my_test, G_TYPE_OBJECT);
|
||||
G_DEFINE_TYPE (GTest, my_test, G_TYPE_OBJECT)
|
||||
|
||||
/* --- variables --- */
|
||||
static volatile gboolean stopping = FALSE;
|
||||
|
@@ -32,7 +32,7 @@ struct _GTestClass
|
||||
};
|
||||
|
||||
static GType my_test_get_type (void);
|
||||
G_DEFINE_TYPE (GTest, my_test, G_TYPE_OBJECT);
|
||||
G_DEFINE_TYPE (GTest, my_test, G_TYPE_OBJECT)
|
||||
|
||||
static volatile gboolean stopping;
|
||||
|
||||
|
@@ -30,7 +30,7 @@ struct _MyBadgerClass
|
||||
};
|
||||
|
||||
static GType my_badger_get_type (void);
|
||||
G_DEFINE_TYPE (MyBadger, my_badger, G_TYPE_OBJECT);
|
||||
G_DEFINE_TYPE (MyBadger, my_badger, G_TYPE_OBJECT)
|
||||
|
||||
static void my_badger_dispose (GObject * object);
|
||||
|
||||
|
Reference in New Issue
Block a user