mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +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
@@ -410,19 +410,19 @@ test_value_transform (void)
|
||||
|
||||
static GType test_object_a_get_type (void);
|
||||
typedef GObject TestObjectA; typedef GObjectClass TestObjectAClass;
|
||||
G_DEFINE_TYPE (TestObjectA, test_object_a, G_TYPE_OBJECT);
|
||||
G_DEFINE_TYPE (TestObjectA, test_object_a, G_TYPE_OBJECT)
|
||||
static void test_object_a_class_init (TestObjectAClass *class) { }
|
||||
static void test_object_a_init (TestObjectA *a) { }
|
||||
|
||||
static GType test_object_b_get_type (void);
|
||||
typedef GObject TestObjectB; typedef GObjectClass TestObjectBClass;
|
||||
G_DEFINE_TYPE (TestObjectB, test_object_b, test_object_a_get_type ());
|
||||
G_DEFINE_TYPE (TestObjectB, test_object_b, test_object_a_get_type ())
|
||||
static void test_object_b_class_init (TestObjectBClass *class) { }
|
||||
static void test_object_b_init (TestObjectB *b) { }
|
||||
|
||||
static GType test_object_c_get_type (void);
|
||||
typedef GObject TestObjectC; typedef GObjectClass TestObjectCClass;
|
||||
G_DEFINE_TYPE (TestObjectC, test_object_c, G_TYPE_OBJECT);
|
||||
G_DEFINE_TYPE (TestObjectC, test_object_c, G_TYPE_OBJECT)
|
||||
static void test_object_c_class_init (TestObjectCClass *class) { }
|
||||
static void test_object_c_init (TestObjectC *c) { }
|
||||
|
||||
|
Reference in New Issue
Block a user