mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 05:28:48 +00:00
Don't use declarations after statements in C code
This commit is contained in:
parent
6863c0b13b
commit
bd9052c00a
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue