From bd9052c00a0088b04f177ccdb38c0844d1bcfd07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 20 Sep 2009 10:09:43 +0200 Subject: [PATCH] Don't use declarations after statements in C code --- gstreamer-sharp/glue/controlsource.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gstreamer-sharp/glue/controlsource.c b/gstreamer-sharp/glue/controlsource.c index 173a09e233..b7359a72c6 100644 --- a/gstreamer-sharp/glue/controlsource.c +++ b/gstreamer-sharp/glue/controlsource.c @@ -13,10 +13,12 @@ const gchar *__gtype_prefix = "__gtksharp_"; static GObjectClass * get_threshold_class (GObject *obj) { + GObjectClass *klass; GType gtype = G_TYPE_FROM_INSTANCE (obj); + while (HAS_PREFIX (g_type_name (gtype))) gtype = g_type_parent (gtype); - GObjectClass *klass = g_type_class_peek (gtype); + klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); return klass; }