mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 01:18:53 +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 */
|
/* Always chain up to the parent constructor */
|
||||||
MamanBarClass *klass;
|
obj = G_OBJECT_CLASS (maman_bar_parent_class)->constructor (gtype, n_properties, properties);
|
||||||
GObjectClass *parent_class;
|
|
||||||
parent_class = G_OBJECT_CLASS (maman_bar_parent_class);
|
|
||||||
obj = parent_class->constructor (gtype, n_properties, properties);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* update the object state depending on constructor properties */
|
/* update the object state depending on constructor properties */
|
||||||
|
Reference in New Issue
Block a user