From 235e0557710fbd010aeb0db31ab719cc142885ae Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Sat, 25 Feb 2012 07:48:54 +0100 Subject: (cppcheck and janitorial tasks:) C-style casting to C++-style casting (bzr r11011) --- src/text-editing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/text-editing.cpp') diff --git a/src/text-editing.cpp b/src/text-editing.cpp index e6ffb54de..8f005d86a 100644 --- a/src/text-editing.cpp +++ b/src/text-editing.cpp @@ -1973,7 +1973,7 @@ void sp_te_apply_style(SPItem *text, Inkscape::Text::Layout::iterator const &sta // bug #168370 (consider parent transform and viewBox) // snipplet copied from desktop-style.cpp sp_desktop_apply_css_recursive(...) SPCSSAttr *css_set = sp_repr_css_attr_new(); - sp_repr_css_merge(css_set, (SPCSSAttr*) css); + sp_repr_css_merge(css_set, const_cast(css)); { Geom::Affine const local(SP_ITEM(common_ancestor)->i2doc_affine()); double const ex(local.descrim()); @@ -2032,7 +2032,7 @@ bool has_visible_text(SPObject *obj) hasVisible = true; // maybe we should also check that it's not all whitespace? } else { for (SPObject const *child = obj->firstChild() ; child ; child = child->getNext()) { - if (has_visible_text((SPObject *) child)) { + if (has_visible_text(const_cast(child))) { hasVisible = true; break; } -- cgit v1.2.3