mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
docs: cleanup constructor example
Remove unused var and chain-up the sane way we do elsewhere.
This commit is contained in:
@@ -97,10 +97,7 @@ maman_bar_constructor (GType gtype,
|
||||
|
||||
{
|
||||
/* Always chain up to the parent constructor */
|
||||
MamanBarClass *klass;
|
||||
GObjectClass *parent_class;
|
||||
parent_class = G_OBJECT_CLASS (maman_bar_parent_class);
|
||||
obj = parent_class->constructor (gtype, n_properties, properties);
|
||||
obj = G_OBJECT_CLASS (maman_bar_parent_class)->constructor (gtype, n_properties, properties);
|
||||
}
|
||||
|
||||
/* update the object state depending on constructor properties */
|
||||
|
Reference in New Issue
Block a user