From 409f7db894bcfc6574d86aec34af6851dacc1666 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Sun, 19 Sep 2010 21:37:19 +0300 Subject: [PATCH] docs: cleanup constructor example Remove unused var and chain-up the sane way we do elsewhere. --- docs/reference/gobject/tut_gobject.xml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/reference/gobject/tut_gobject.xml b/docs/reference/gobject/tut_gobject.xml index 4c5e7079d..fb0a9d832 100644 --- a/docs/reference/gobject/tut_gobject.xml +++ b/docs/reference/gobject/tut_gobject.xml @@ -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 */