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-stop.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/sp-stop.cpp') diff --git a/src/sp-stop.cpp b/src/sp-stop.cpp index 71d06ced9..a8d81818b 100644 --- a/src/sp-stop.cpp +++ b/src/sp-stop.cpp @@ -34,10 +34,7 @@ namespace { bool stopRegistered = SPFactory::instance().registerObject("svg:stop", createStop); } -SPStop::SPStop() : SPObject(), CObject(this) { - delete this->cobject; - this->cobject = this; - +SPStop::SPStop() : SPObject() { this->path_string = NULL; this->offset = 0.0; @@ -52,7 +49,7 @@ SPStop::~SPStop() { void SPStop::build(SPDocument* doc, Inkscape::XML::Node* repr) { SPStop* object = this; - CObject::build(doc, repr); + SPObject::build(doc, repr); object->readAttr( "offset" ); object->readAttr( "stop-color" ); @@ -138,7 +135,7 @@ void SPStop::set(unsigned int key, const gchar* value) { break; } default: { - CObject::set(key, value); + SPObject::set(key, value); break; } } @@ -160,7 +157,7 @@ Inkscape::XML::Node* SPStop::write(Inkscape::XML::Document* xml_doc, Inkscape::X Glib::ustring colorStr = stop->specified_color.toString(); gfloat opacity = stop->opacity; - CObject::write(xml_doc, repr, flags); + SPObject::write(xml_doc, repr, flags); // Since we do a hackish style setting here (because SPStyle does not support stop-color and // stop-opacity), we must do it AFTER calling the parent write method; otherwise -- cgit v1.2.3