aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-modem-voice.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-03-28 18:35:57 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-03-29 10:22:34 +0200
commit78e6ba5688f80ee30466ef59ed78c78e083c4c55 (patch)
treeeb31c189e0e842e2982b002f415947341cda5706 /libmm-glib/mm-modem-voice.c
parentb225b7a2673d53b6e8dbf6a96e6459592ada6d37 (diff)
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.
Diffstat (limited to 'libmm-glib/mm-modem-voice.c')
-rw-r--r--libmm-glib/mm-modem-voice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmm-glib/mm-modem-voice.c b/libmm-glib/mm-modem-voice.c
index f517b1b9..1d649454 100644
--- a/libmm-glib/mm-modem-voice.c
+++ b/libmm-glib/mm-modem-voice.c
@@ -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);
}