summaryrefslogtreecommitdiffstats
path: root/src/widgets/fill-style.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <mc@localhost.localdomain>2015-02-27 03:21:48 +0000
committerMarc Jeanmougin <mc@localhost.localdomain>2015-02-27 03:21:48 +0000
commit9bdc157f705ca61516e599cb416580283d21ec35 (patch)
tree59cc0dbb46445c8741913922bf7d983f35d5c11d /src/widgets/fill-style.cpp
parentcorrected the casts (hopefully) (diff)
downloadinkscape-9bdc157f705ca61516e599cb416580283d21ec35.tar.gz
inkscape-9bdc157f705ca61516e599cb416580283d21ec35.zip
more cast cleanup
(bzr r13922.1.11)
Diffstat (limited to 'src/widgets/fill-style.cpp')
-rw-r--r--src/widgets/fill-style.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/fill-style.cpp b/src/widgets/fill-style.cpp
index 7d5a89cf5..1d258bbb0 100644
--- a/src/widgets/fill-style.cpp
+++ b/src/widgets/fill-style.cpp
@@ -579,7 +579,7 @@ void FillNStroke::updateFromPaint()
for(std::vector<SPItem*>::const_iterator i=items.begin();i!=items.end();i++){
//FIXME: see above
if (kind == FILL) {
- sp_repr_css_change_recursive(reinterpret_cast<SPObject*>(*i)->getRepr(), css, "style");
+ sp_repr_css_change_recursive((*i)->getRepr(), css, "style");
}
if (!vector) {
@@ -605,7 +605,7 @@ void FillNStroke::updateFromPaint()
for(std::vector<SPItem*>::const_iterator i=items.begin();i!=items.end();i++){
//FIXME: see above
if (kind == FILL) {
- sp_repr_css_change_recursive(reinterpret_cast<SPObject*>(*i)->getRepr(), css, "style");
+ sp_repr_css_change_recursive((*i)->getRepr(), css, "style");
}
SPGradient *gr = sp_item_set_gradient(*i, vector, gradient_type, (kind == FILL) ? Inkscape::FOR_FILL : Inkscape::FOR_STROKE);
@@ -649,11 +649,11 @@ void FillNStroke::updateFromPaint()
// objects who already have the same root pattern but through a different href
// chain. FIXME: move this to a sp_item_set_pattern
for(std::vector<SPItem*>::const_iterator i=items.begin();i!=items.end();i++){
- Inkscape::XML::Node *selrepr = reinterpret_cast<SPObject*>(*i)->getRepr();
+ Inkscape::XML::Node *selrepr = (*i)->getRepr();
if ( (kind == STROKE) && !selrepr) {
continue;
}
- SPObject *selobj = reinterpret_cast<SPObject*>(*i);
+ SPObject *selobj = *i;
SPStyle *style = selobj->style;
if (style && ((kind == FILL) ? style->fill : style->stroke).isPaintserver()) {