projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6ad0fb
)
docs: cleanup constructor example
author
Stefan Kost
<ensonic@users.sf.net>
Sun, 19 Sep 2010 18:37:19 +0000
(21:37 +0300)
committer
Stefan Kost
<ensonic@users.sf.net>
Sun, 19 Sep 2010 18:37:19 +0000
(21:37 +0300)
Remove unused var and chain-up the sane way we do elsewhere.
docs/reference/gobject/tut_gobject.xml
patch
|
blob
|
history
diff --git
a/docs/reference/gobject/tut_gobject.xml
b/docs/reference/gobject/tut_gobject.xml
index
4c5e707
..
fb0a9d8
100644
(file)
--- 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 */