diff options
author | Ben Chan <benchan@chromium.org> | 2017-03-28 18:35:57 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-03-29 10:22:34 +0200 |
commit | 78e6ba5688f80ee30466ef59ed78c78e083c4c55 (patch) | |
tree | eb31c189e0e842e2982b002f415947341cda5706 /libmm-glib/mm-modem-messaging.c | |
parent | b225b7a2673d53b6e8dbf6a96e6459592ada6d37 (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-messaging.c')
-rw-r--r-- | libmm-glib/mm-modem-messaging.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmm-glib/mm-modem-messaging.c b/libmm-glib/mm-modem-messaging.c index 682cae93..a6e281fc 100644 --- a/libmm-glib/mm-modem-messaging.c +++ b/libmm-glib/mm-modem-messaging.c @@ -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); } |