summaryrefslogtreecommitdiffstats
path: root/src/sp-polyline.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-05 13:37:33 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-05 13:37:33 +0000
commitcfe48de7f071e2e07a1f2f2ace3456f7b410e93b (patch)
tree281d760873c84db3a67518ab19e61bb213f1eab7 /src/sp-polyline.cpp
parentCombined some classes. (diff)
downloadinkscape-cfe48de7f071e2e07a1f2f2ace3456f7b410e93b.tar.gz
inkscape-cfe48de7f071e2e07a1f2f2ace3456f7b410e93b.zip
Merged Shape and subclasses. Cleaned up a bit.
(bzr r11608.1.76)
Diffstat (limited to 'src/sp-polyline.cpp')
-rw-r--r--src/sp-polyline.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/sp-polyline.cpp b/src/sp-polyline.cpp
index c97b96b73..a85d0d64a 100644
--- a/src/sp-polyline.cpp
+++ b/src/sp-polyline.cpp
@@ -30,9 +30,7 @@ namespace {
bool polyLineRegistered = SPFactory::instance().registerObject("svg:polyline", createPolyLine);
}
-SPPolyLine::SPPolyLine() : SPShape(), CShape(this) {
- delete this->cshape;
- this->cshape = this;
+SPPolyLine::SPPolyLine() : SPShape() {
this->clpeitem = this;
this->citem = this;
this->cobject = this;
@@ -42,7 +40,7 @@ SPPolyLine::~SPPolyLine() {
}
void SPPolyLine::build(SPDocument * document, Inkscape::XML::Node * repr) {
- CShape::build(document, repr);
+ SPShape::build(document, repr);
this->readAttr("points");
}
@@ -113,7 +111,7 @@ void SPPolyLine::set(unsigned int key, const gchar* value) {
break;
}
default:
- CShape::set(key, value);
+ SPShape::set(key, value);
break;
}
}
@@ -127,7 +125,7 @@ Inkscape::XML::Node* SPPolyLine::write(Inkscape::XML::Document *xml_doc, Inkscap
repr->mergeFrom(this->getRepr(), "id");
}
- CShape::write(xml_doc, repr, flags);
+ SPShape::write(xml_doc, repr, flags);
return repr;
}