mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
docs: cleanup constructor example
Remove unused var and chain-up the sane way we do elsewhere.
This commit is contained in:
parent
a6ad0fbec2
commit
409f7db894
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user