summaryrefslogtreecommitdiffstats
path: root/src/sp-string.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-02 18:45:20 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-02 18:45:20 +0000
commit0a7e23844c3a43203de3f5207aecb278e84ee739 (patch)
tree73368a7dd8367c23599f0027d63c1c0a06638865 /src/sp-string.cpp
parentRegistered classes with new factory. Hkern, Vkern and FeFuncX have to be rewr... (diff)
downloadinkscape-0a7e23844c3a43203de3f5207aecb278e84ee739.tar.gz
inkscape-0a7e23844c3a43203de3f5207aecb278e84ee739.zip
Added virtual destructor to SPObject. Switched to new factory. Replaced some casts. Inkscape seems stable, car.svgz renders correctly to png.
(bzr r11608.1.70)
Diffstat (limited to 'src/sp-string.cpp')
-rw-r--r--src/sp-string.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sp-string.cpp b/src/sp-string.cpp
index 332ccaf31..29679b93a 100644
--- a/src/sp-string.cpp
+++ b/src/sp-string.cpp
@@ -32,6 +32,15 @@
#include "sp-string.h"
#include "xml/repr.h"
+#include "sp-factory.h"
+
+namespace {
+ SPObject* createString() {
+ return new SPString();
+ }
+
+ bool stringRegistered = SPFactory::instance().registerObject("string", createString);
+}
/*#####################################################
# SPSTRING