Don't use declarations after statements in C code

This commit is contained in:
Sebastian Dröge 2009-09-20 10:09:43 +02:00
parent 6863c0b13b
commit bd9052c00a

View file

@ -13,10 +13,12 @@ const gchar *__gtype_prefix = "__gtksharp_";
static GObjectClass * static GObjectClass *
get_threshold_class (GObject *obj) get_threshold_class (GObject *obj)
{ {
GObjectClass *klass;
GType gtype = G_TYPE_FROM_INSTANCE (obj); GType gtype = G_TYPE_FROM_INSTANCE (obj);
while (HAS_PREFIX (g_type_name (gtype))) while (HAS_PREFIX (g_type_name (gtype)))
gtype = g_type_parent (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); if (klass == NULL) klass = g_type_class_ref (gtype);
return klass; return klass;
} }