summaryrefslogtreecommitdiffstats
path: root/src/dialogs
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-02-08 20:32:09 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-02-08 20:32:09 +0000
commitd659a2076f730e5bbfc5b191d6502d0fb90c320d (patch)
tree12cfb814c53796af0850e6b70239ccb851ea5a4d /src/dialogs
parentPatch from lp 819209 to fix python extensions on OSX Lion (diff)
downloadinkscape-d659a2076f730e5bbfc5b191d6502d0fb90c320d.tar.gz
inkscape-d659a2076f730e5bbfc5b191d6502d0fb90c320d.zip
(cppcheck and janitorial tasks:) C-style casting to C++-style casting
(bzr r10952)
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);