mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
dbusauthmechanism: Stop using g_type_class_ref/unref
These are just wrappers for g_type_class_get/nothing now.
This commit is contained in:
parent
ec8f4cec49
commit
03c1c6382d
@ -188,10 +188,8 @@ _g_dbus_auth_mechanism_get_name (GType mechanism_type)
|
|||||||
|
|
||||||
g_return_val_if_fail (g_type_is_a (mechanism_type, G_TYPE_DBUS_AUTH_MECHANISM), NULL);
|
g_return_val_if_fail (g_type_is_a (mechanism_type, G_TYPE_DBUS_AUTH_MECHANISM), NULL);
|
||||||
|
|
||||||
klass = g_type_class_ref (mechanism_type);
|
klass = g_type_class_get (mechanism_type);
|
||||||
g_assert (klass != NULL);
|
|
||||||
name = klass->get_name ();
|
name = klass->get_name ();
|
||||||
//g_type_class_unref (klass);
|
|
||||||
|
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
@ -204,10 +202,8 @@ _g_dbus_auth_mechanism_get_priority (GType mechanism_type)
|
|||||||
|
|
||||||
g_return_val_if_fail (g_type_is_a (mechanism_type, G_TYPE_DBUS_AUTH_MECHANISM), 0);
|
g_return_val_if_fail (g_type_is_a (mechanism_type, G_TYPE_DBUS_AUTH_MECHANISM), 0);
|
||||||
|
|
||||||
klass = g_type_class_ref (mechanism_type);
|
klass = g_type_class_get (mechanism_type);
|
||||||
g_assert (klass != NULL);
|
|
||||||
priority = klass->get_priority ();
|
priority = klass->get_priority ();
|
||||||
//g_type_class_unref (klass);
|
|
||||||
|
|
||||||
return priority;
|
return priority;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user