libmm-glib: remove explicit GDestroyNotify cast on g_object_unref

g_object_unref is in form of  `void (*)(gpointer)`, which matches the
GDestroyNotify signature. An explicit GDestroyNotify cast on
g_object_unref is thus not needed.
This commit is contained in:
Ben Chan
2017-03-29 10:22:34 +02:00
committed by Aleksander Morgado
parent b225b7a267
commit 78e6ba5688
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -230,7 +230,7 @@ typedef struct {
static void
sms_object_list_free (GList *list)
{
g_list_free_full (list, (GDestroyNotify) g_object_unref);
g_list_free_full (list, g_object_unref);
}
static void
@@ -492,7 +492,7 @@ new_sms_object_ready (GDBusConnection *connection,
else
g_simple_async_result_set_op_res_gpointer (ctx->result,
sms,
(GDestroyNotify)g_object_unref);
g_object_unref);
create_sms_context_complete_and_free (ctx);
}
+1 -1
View File
@@ -138,7 +138,7 @@ new_bearer_ready (GDBusConnection *connection,
else
g_simple_async_result_set_op_res_gpointer (ctx->result,
bearer,
(GDestroyNotify)g_object_unref);
g_object_unref);
connect_context_complete_and_free (ctx);
}
+2 -2
View File
@@ -95,7 +95,7 @@ typedef struct {
static void
call_object_list_free (GList *list)
{
g_list_free_full (list, (GDestroyNotify) g_object_unref);
g_list_free_full (list, g_object_unref);
}
static void
@@ -357,7 +357,7 @@ new_call_object_ready (GDBusConnection *connection,
else
g_simple_async_result_set_op_res_gpointer (ctx->result,
call,
(GDestroyNotify)g_object_unref);
g_object_unref);
create_call_context_complete_and_free (ctx);
}
+3 -3
View File
@@ -1763,7 +1763,7 @@ typedef struct {
static void
bearer_object_list_free (GList *list)
{
g_list_free_full (list, (GDestroyNotify) g_object_unref);
g_list_free_full (list, g_object_unref);
}
static void
@@ -2027,7 +2027,7 @@ modem_new_bearer_ready (GDBusConnection *connection,
else
g_simple_async_result_set_op_res_gpointer (ctx->result,
bearer,
(GDestroyNotify)g_object_unref);
g_object_unref);
create_bearer_context_complete_and_free (ctx);
}
@@ -2868,7 +2868,7 @@ modem_get_sim_ready (GDBusConnection *connection,
else
g_simple_async_result_set_op_res_gpointer (simple,
sim,
(GDestroyNotify)g_object_unref);
g_object_unref);
g_simple_async_result_complete (simple);
g_object_unref (simple);