diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-02-08 20:32:09 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-02-08 20:32:09 +0000 |
| commit | d659a2076f730e5bbfc5b191d6502d0fb90c320d (patch) | |
| tree | 12cfb814c53796af0850e6b70239ccb851ea5a4d /src/dialogs/spellcheck.cpp | |
| parent | Patch from lp 819209 to fix python extensions on OSX Lion (diff) | |
| download | inkscape-d659a2076f730e5bbfc5b191d6502d0fb90c320d.tar.gz inkscape-d659a2076f730e5bbfc5b191d6502d0fb90c320d.zip | |
(cppcheck and janitorial tasks:) C-style casting to C++-style casting
(bzr r10952)
Diffstat (limited to 'src/dialogs/spellcheck.cpp')
| -rw-r--r-- | src/dialogs/spellcheck.cpp | 4 |
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); |
