summaryrefslogtreecommitdiffstats
path: root/src/sp-glyph.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/sp-glyph.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/sp-glyph.cpp')
-rw-r--r--src/sp-glyph.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/sp-glyph.cpp b/src/sp-glyph.cpp
index 6acef4db9..f18c3ef6d 100644
--- a/src/sp-glyph.cpp
+++ b/src/sp-glyph.cpp
@@ -32,10 +32,7 @@ namespace {
bool glyphRegistered = SPFactory::instance().registerObject("svg:glyph", createGlyph);
}
-SPGlyph::SPGlyph() : SPObject(), CObject(this) {
- delete this->cobject;
- this->cobject = this;
-
+SPGlyph::SPGlyph() : SPObject() {
//TODO: correct these values:
new (&this->unicode) Glib::ustring();
@@ -54,7 +51,7 @@ SPGlyph::~SPGlyph() {
}
void SPGlyph::build(SPDocument *document, Inkscape::XML::Node *repr) {
- CObject::build(document, repr);
+ SPObject::build(document, repr);
SPGlyph* object = this;
@@ -71,7 +68,7 @@ void SPGlyph::build(SPDocument *document, Inkscape::XML::Node *repr) {
}
void SPGlyph::release() {
- CObject::release();
+ SPObject::release();
}
static glyphArabicForm sp_glyph_read_arabic_form(gchar const *value){
@@ -195,7 +192,7 @@ void SPGlyph::set(unsigned int key, const gchar *value) {
}
default:
{
- CObject::set(key, value);
+ SPObject::set(key, value);
break;
}
}
@@ -224,7 +221,7 @@ void SPGlyph::update(SPCtx *ctx, guint flags) {
object->readAttr( "vert-adv-y" );
}
- CObject::update(ctx, flags);
+ SPObject::update(ctx, flags);
}
#define COPY_ATTR(rd,rs,key) (rd)->setAttribute((key), rs->attribute(key));
@@ -265,7 +262,7 @@ Inkscape::XML::Node* SPGlyph::write(Inkscape::XML::Document *xml_doc, Inkscape::
COPY_ATTR(repr, object->getRepr(), "vert-adv-y");
}
- CObject::write(xml_doc, repr, flags);
+ SPObject::write(xml_doc, repr, flags);
return repr;
}