From 7308f9e1e734fc54661b3d79c4ff8e8fbeb84867 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Sun, 3 Nov 2019 20:02:46 +0100 Subject: refactor: Eliminate SPIString::value_default - eliminate value_default - make value private (-> _value) - add value() method --- src/object/sp-shape.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/object/sp-shape.cpp') diff --git a/src/object/sp-shape.cpp b/src/object/sp-shape.cpp index be68aae1f..c342fba85 100644 --- a/src/object/sp-shape.cpp +++ b/src/object/sp-shape.cpp @@ -67,7 +67,7 @@ void SPShape::build(SPDocument *document, Inkscape::XML::Node *repr) { SPLPEItem::build(document, repr); for (int i = 0 ; i < SP_MARKER_LOC_QTY ; i++) { - sp_shape_set_marker (this, i, this->style->marker_ptrs[i]->value); + sp_shape_set_marker (this, i, this->style->marker_ptrs[i]->value()); } } @@ -133,7 +133,7 @@ void SPShape::update(SPCtx* ctx, guint flags) { * match the style. */ for (int i = 0 ; i < SP_MARKER_LOC_QTY ; i++) { - sp_shape_set_marker (this, i, this->style->marker_ptrs[i]->value); + sp_shape_set_marker (this, i, this->style->marker_ptrs[i]->value()); } if (flags & (SP_OBJECT_STYLE_MODIFIED_FLAG | SP_OBJECT_VIEWPORT_MODIFIED_FLAG)) { @@ -856,7 +856,7 @@ Inkscape::DrawingItem* SPShape::show(Inkscape::Drawing &drawing, unsigned int /* * match the style. */ for (int i = 0 ; i < SP_MARKER_LOC_QTY ; i++) { - sp_shape_set_marker (this, i, this->style->marker_ptrs[i]->value); + sp_shape_set_marker (this, i, this->style->marker_ptrs[i]->value()); } if (has_markers) { -- cgit v1.2.3