summaryrefslogtreecommitdiffstats
path: root/src/color-profile.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-07 16:28:22 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-07 16:28:22 +0000
commit27e2102f96a5554bcd5310ec11435d155773b279 (patch)
treee5f982c25aed199f9027a6277b17302f97b4c80c /src/color-profile.cpp
parentMerged FilterPrimitive and subclasses. (diff)
downloadinkscape-27e2102f96a5554bcd5310ec11435d155773b279.tar.gz
inkscape-27e2102f96a5554bcd5310ec11435d155773b279.zip
Merge Object and subclasses. Merging of SP- and C-classes complete.
(bzr r11608.1.86)
Diffstat (limited to 'src/color-profile.cpp')
-rw-r--r--src/color-profile.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index 0373ab317..6e9414074 100644
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
@@ -190,10 +190,7 @@ namespace {
bool rectRegistered = SPFactory::instance().registerObject("svg:color-profile", createColorProfile);
}
-ColorProfile::ColorProfile() : SPObject(), CObject(this) {
- delete this->cobject;
- this->cobject = this;
-
+ColorProfile::ColorProfile() : SPObject() {
this->impl = new ColorProfileImpl();
this->href = 0;
@@ -282,7 +279,7 @@ void ColorProfile::build(SPDocument *document, Inkscape::XML::Node *repr) {
g_assert(cprof->name == 0);
g_assert(cprof->intentStr == 0);
- CObject::build(document, repr);
+ SPObject::build(document, repr);
object->readAttr( "xlink:href" );
object->readAttr( "local" );
@@ -410,7 +407,7 @@ void ColorProfile::set(unsigned key, gchar const *value) {
break;
default:
- CObject::set(key, value);
+ SPObject::set(key, value);
break;
}
}
@@ -443,7 +440,7 @@ Inkscape::XML::Node* ColorProfile::write(Inkscape::XML::Document *xml_doc, Inksc
repr->setAttribute( "rendering-intent", cprof->intentStr );
}
- CObject::write(xml_doc, repr, flags);
+ SPObject::write(xml_doc, repr, flags);
return repr;
}