diff options
author | rbuj <[email protected]> | 2020-02-28 09:07:37 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-03-14 13:14:35 +0100 |
commit | 28a6895df5fa4a1a60c794ed5e85e31d764e85e7 (patch) | |
tree | f9b5d3eae40ecb5bd8eb357c10ce8458b2faa7f9 /plugins/filebrowser/pluma-file-bookmarks-store.c | |
parent | d265d00b72fc9a7fb126079780303df9ea217a29 (diff) | |
download | pluma-28a6895df5fa4a1a60c794ed5e85e31d764e85e7.tar.bz2 pluma-28a6895df5fa4a1a60c794ed5e85e31d764e85e7.tar.xz |
Remove warnings: cast between incompatible function types
Diffstat (limited to 'plugins/filebrowser/pluma-file-bookmarks-store.c')
-rw-r--r-- | plugins/filebrowser/pluma-file-bookmarks-store.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/filebrowser/pluma-file-bookmarks-store.c b/plugins/filebrowser/pluma-file-bookmarks-store.c index 4493742c..c8da938e 100644 --- a/plugins/filebrowser/pluma-file-bookmarks-store.c +++ b/plugins/filebrowser/pluma-file-bookmarks-store.c @@ -370,8 +370,7 @@ init_drives (PlumaFileBookmarksStore *model) drives = g_volume_monitor_get_connected_drives (model->priv->volume_monitor); g_list_foreach (drives, (GFunc)process_drive_cb, model); - g_list_foreach (drives, (GFunc)g_object_unref, NULL); - g_list_free (drives); + g_list_free_full (drives, g_object_unref); } static void @@ -399,8 +398,7 @@ init_volumes (PlumaFileBookmarksStore *model) volumes = g_volume_monitor_get_volumes (model->priv->volume_monitor); g_list_foreach (volumes, (GFunc)process_volume_nodrive_cb, model); - g_list_foreach (volumes, (GFunc)g_object_unref, NULL); - g_list_free (volumes); + g_list_free_full (volumes, g_object_unref); } static void @@ -430,8 +428,7 @@ init_mounts (PlumaFileBookmarksStore *model) mounts = g_volume_monitor_get_mounts (model->priv->volume_monitor); g_list_foreach (mounts, (GFunc)process_mount_novolume_cb, model); - g_list_foreach (mounts, (GFunc)g_object_unref, NULL); - g_list_free (mounts); + g_list_free_full (mounts, g_object_unref); } static void |