From 27e2102f96a5554bcd5310ec11435d155773b279 Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Sun, 7 Apr 2013 18:28:22 +0200 Subject: Merge Object and subclasses. Merging of SP- and C-classes complete. (bzr r11608.1.86) --- src/sp-title.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/sp-title.cpp') 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; } -- cgit v1.2.3