summaryrefslogtreecommitdiffstats
path: root/src/text-editing.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-02-25 06:48:54 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-02-25 06:48:54 +0000
commit235e0557710fbd010aeb0db31ab719cc142885ae (patch)
treef847bf164cd6d5e9a6dedc96d39406fc0b428c83 /src/text-editing.cpp
parentavoid some Shape calculations that are not relevant to visual bbox (Bug 906952) (diff)
downloadinkscape-235e0557710fbd010aeb0db31ab719cc142885ae.tar.gz
inkscape-235e0557710fbd010aeb0db31ab719cc142885ae.zip
(cppcheck and janitorial tasks:) C-style casting to C++-style casting
(bzr r11011)
Diffstat (limited to 'src/text-editing.cpp')
-rw-r--r--src/text-editing.cpp4
1 files changed, 2 insertions, 2 deletions
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<SPCSSAttr*>(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<SPObject *>(child))) {
hasVisible = true;
break;
}