summaryrefslogtreecommitdiff
path: root/plugins/spell
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-28 09:07:37 +0100
committerraveit65 <[email protected]>2020-03-14 13:14:35 +0100
commit28a6895df5fa4a1a60c794ed5e85e31d764e85e7 (patch)
treef9b5d3eae40ecb5bd8eb357c10ce8458b2faa7f9 /plugins/spell
parentd265d00b72fc9a7fb126079780303df9ea217a29 (diff)
downloadpluma-28a6895df5fa4a1a60c794ed5e85e31d764e85e7.tar.bz2
pluma-28a6895df5fa4a1a60c794ed5e85e31d764e85e7.tar.xz
Remove warnings: cast between incompatible function types
Diffstat (limited to 'plugins/spell')
-rw-r--r--plugins/spell/pluma-spell-checker-dialog.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/spell/pluma-spell-checker-dialog.c b/plugins/spell/pluma-spell-checker-dialog.c
index 3689a280..146c3175 100644
--- a/plugins/spell/pluma-spell-checker-dialog.c
+++ b/plugins/spell/pluma-spell-checker-dialog.c
@@ -426,8 +426,7 @@ pluma_spell_checker_dialog_set_misspelled_word (PlumaSpellCheckerDialog *dlg,
update_suggestions_list_model (dlg, sug);
/* free the suggestion list */
- g_slist_foreach (sug, (GFunc)g_free, NULL);
- g_slist_free (sug);
+ g_slist_free_full (sug, g_free);
gtk_widget_set_sensitive (dlg->ignore_button, TRUE);
gtk_widget_set_sensitive (dlg->ignore_all_button, TRUE);
@@ -578,8 +577,7 @@ check_word_button_clicked_handler (GtkButton *button, PlumaSpellCheckerDialog *d
update_suggestions_list_model (dlg, sug);
/* free the suggestion list */
- g_slist_foreach (sug, (GFunc)g_free, NULL);
- g_slist_free (sug);
+ g_slist_free_full (sug, g_free);
}
}