From cfe48de7f071e2e07a1f2f2ace3456f7b410e93b Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Fri, 5 Apr 2013 15:37:33 +0200 Subject: Merged Shape and subclasses. Cleaned up a bit. (bzr r11608.1.76) --- src/sp-star.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/sp-star.cpp') diff --git a/src/sp-star.cpp b/src/sp-star.cpp index 8414c6d9a..68e85c1fd 100644 --- a/src/sp-star.cpp +++ b/src/sp-star.cpp @@ -43,7 +43,6 @@ namespace { } SPStar::SPStar() : SPPolygon() { - this->cshape = this; this->clpeitem = this; this->citem = this; this->cobject = this; @@ -63,7 +62,7 @@ SPStar::~SPStar() { void SPStar::build(SPDocument * document, Inkscape::XML::Node * repr) { // CPPIFY: see header file - CShape::build(document, repr); + SPShape::build(document, repr); this->readAttr( "sodipodi:cx" ); this->readAttr( "sodipodi:cy" ); @@ -103,7 +102,7 @@ Inkscape::XML::Node* SPStar::write(Inkscape::XML::Document *xml_doc, Inkscape::X g_free(d); // CPPIFY: see header file - CShape::write(xml_doc, repr, flags); + SPShape::write(xml_doc, repr, flags); return repr; } @@ -221,7 +220,7 @@ void SPStar::set(unsigned int key, const gchar* value) { default: // CPPIFY: see header file - CShape::set(key, value); + SPShape::set(key, value); break; } } @@ -231,11 +230,11 @@ void SPStar::update(SPCtx *ctx, guint flags) { SP_OBJECT_STYLE_MODIFIED_FLAG | SP_OBJECT_VIEWPORT_MODIFIED_FLAG)) { - this->setShape(); + this->set_shape(); } // CPPIFY: see header file - CShape::update(ctx, flags); + SPShape::update(ctx, flags); } void SPStar::update_patheffect(bool write) { @@ -512,7 +511,7 @@ void SPStar::snappoints(std::vector &p, Inkscape:: local_snapprefs.setTargetSnappable(Inkscape::SNAPTARGET_OBJECT_MIDPOINT, false); // CPPIFY: see header file - CShape::snappoints(p, &local_snapprefs); + SPShape::snappoints(p, &local_snapprefs); if (snapprefs->isTargetSnappable(Inkscape::SNAPTARGET_OBJECT_MIDPOINT)) { Geom::Affine const i2dt (this->i2dt_affine ()); -- cgit v1.2.3