mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 01:18:53 +02:00
Drop an unnecessary argument from G_DEFINE_PROPERTIES
By renaming the variable holding the properties array (which can also conflict with existing code) we can avoid the lowercase type name.
This commit is contained in:
@@ -1665,8 +1665,8 @@ static void type_name##_init (TypeName *self); \
|
||||
static void type_name##_class_init (TypeName##Class *klass); \
|
||||
static gpointer type_name##_parent_class = NULL; \
|
||||
static gint TypeName##_private_offset; \
|
||||
static GParamSpec **type_name##_properties G_GNUC_UNUSED; \
|
||||
static guint type_name##_properties_len G_GNUC_UNUSED; \
|
||||
static GParamSpec **TypeName##_properties G_GNUC_UNUSED; \
|
||||
static guint TypeName##_properties_len G_GNUC_UNUSED; \
|
||||
\
|
||||
_G_DEFINE_TYPE_EXTENDED_CLASS_INIT(TypeName, type_name) \
|
||||
\
|
||||
|
Reference in New Issue
Block a user