[gnome-software: 5/14] gs-plugin-loader: Remove incorrect and unnecessary casts




commit a6576967c4226d68d36a5f7e0a0c7fa2590a39d1
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Mar 1 13:52:38 2022 +0000

    gs-plugin-loader: Remove incorrect and unnecessary casts
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 lib/gs-plugin-loader.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index 37db44fa6..cb05e1ada 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -2847,14 +2847,14 @@ gs_plugin_loader_init (GsPluginLoader *plugin_loader)
 #endif  /* HAVE_SYSPROF */
 
        plugin_loader->scale = 1;
-       plugin_loader->plugins = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref);
-       plugin_loader->pending_apps = g_ptr_array_new_with_free_func ((GFreeFunc) g_object_unref);
+       plugin_loader->plugins = g_ptr_array_new_with_free_func (g_object_unref);
+       plugin_loader->pending_apps = g_ptr_array_new_with_free_func (g_object_unref);
        plugin_loader->queued_ops_pool = g_thread_pool_new (gs_plugin_loader_process_in_thread_pool_cb,
                                                   NULL,
                                                   get_max_parallel_ops (),
                                                   FALSE,
                                                   NULL);
-       plugin_loader->file_monitors = g_ptr_array_new_with_free_func ((GFreeFunc) g_object_unref);
+       plugin_loader->file_monitors = g_ptr_array_new_with_free_func (g_object_unref);
        plugin_loader->locations = g_ptr_array_new_with_free_func (g_free);
        plugin_loader->settings = g_settings_new ("org.gnome.software");
        g_signal_connect (plugin_loader->settings, "changed",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]