summaryrefslogtreecommitdiffstats
path: root/src/sp-title.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-title.cpp')
-rw-r--r--src/sp-title.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sp-title.cpp b/src/sp-title.cpp
index 57c61f590..4ecfcfa8e 100644
--- a/src/sp-title.cpp
+++ b/src/sp-title.cpp
@@ -26,9 +26,7 @@ namespace {
bool titleRegistered = SPFactory::instance().registerObject("svg:title", createTitle);
}
-SPTitle::SPTitle() : SPObject(), CObject(this) {
- delete this->cobject;
- this->cobject = this;
+SPTitle::SPTitle() : SPObject() {
}
SPTitle::~SPTitle() {
@@ -41,7 +39,7 @@ Inkscape::XML::Node* SPTitle::write(Inkscape::XML::Document *xml_doc, Inkscape::
repr = object->getRepr()->duplicate(xml_doc);
}
- CObject::write(xml_doc, repr, flags);
+ SPObject::write(xml_doc, repr, flags);
return repr;
}