core: strict return type in g_object_ref()

This is now a requirement when using glib 2.56.
This commit is contained in:
Aleksander Morgado
2021-04-30 12:26:25 +02:00
parent edee1e3f84
commit 25a1b28fbf
11 changed files with 52 additions and 52 deletions

View File

@@ -536,7 +536,7 @@ GObject *
mm_device_get_plugin (MMDevice *self)
{
return (self->priv->plugin ?
g_object_ref (self->priv->plugin) :
G_OBJECT (g_object_ref (self->priv->plugin)) :
NULL);
}
@@ -573,7 +573,7 @@ mm_device_get_port_probe (MMDevice *self,
MMPortProbe *probe;
probe = device_find_probe_with_device (self, kernel_port, FALSE);
return (probe ? g_object_ref (probe) : NULL);
return (probe ? G_OBJECT (g_object_ref (probe)) : NULL);
}
GList *