From d659a2076f730e5bbfc5b191d6502d0fb90c320d Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Wed, 8 Feb 2012 21:32:09 +0100 Subject: (cppcheck and janitorial tasks:) C-style casting to C++-style casting (bzr r10952) --- src/dialogs/spellcheck.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dialogs') diff --git a/src/dialogs/spellcheck.cpp b/src/dialogs/spellcheck.cpp index 53bc24211..a239837ba 100644 --- a/src/dialogs/spellcheck.cpp +++ b/src/dialogs/spellcheck.cpp @@ -229,7 +229,7 @@ spellcheck_text_is_valid (SPObject *root, SPItem *text) GSList *l = NULL; l = all_text_items (root, l, false, true); for (GSList *i = l; i; i = i->next) { - SPItem *item = (SPItem *) i->data; + SPItem *item = static_cast(i->data); if (item == text) { g_slist_free (l); return true; @@ -273,7 +273,7 @@ SPItem *spellcheck_get_text (SPObject *root) l = g_slist_sort(l, compare_text_bboxes); for (GSList *i = l; i; i = i->next) { - SPItem *item = (SPItem *) i->data; + SPItem *item = static_cast(i->data); if (!g_slist_find (_seen_objects, item)) { _seen_objects = g_slist_prepend(_seen_objects, item); g_slist_free(l); -- cgit v1.2.3