summaryrefslogtreecommitdiffstats
path: root/src/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialogs')
-rw-r--r--src/dialogs/spellcheck.cpp4
1 files changed, 2 insertions, 2 deletions
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<SPItem *>(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<SPItem *>(i->data);
if (!g_slist_find (_seen_objects, item)) {
_seen_objects = g_slist_prepend(_seen_objects, item);
g_slist_free(l);