summaryrefslogtreecommitdiffstats
path: root/src/sp-use.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2015-02-25 00:22:08 +0000
committerLiam P. White <inkscapebrony@gmail.com>2015-02-25 00:22:08 +0000
commitdf7828a7a8ba0b7e6c2dd892ca5f0a62ef718bf0 (patch)
tree8e03cc5b9c89749e73a1281ee997da90b40694fc /src/sp-use.cpp
parentTranslations. Hungarian translation update. (diff)
downloadinkscape-df7828a7a8ba0b7e6c2dd892ca5f0a62ef718bf0.tar.gz
inkscape-df7828a7a8ba0b7e6c2dd892ca5f0a62ef718bf0.zip
create SPObject factory
(bzr r13939.1.1)
Diffstat (limited to 'src/sp-use.cpp')
-rw-r--r--src/sp-use.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/sp-use.cpp b/src/sp-use.cpp
index 7e02de3c1..239f487a4 100644
--- a/src/sp-use.cpp
+++ b/src/sp-use.cpp
@@ -13,10 +13,6 @@
* Released under GNU GPL, read the file 'COPYING' for more information
*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
#include <cstring>
#include <string>
@@ -42,14 +38,6 @@
#include "sp-text.h"
#include "sp-flowtext.h"
-namespace {
- SPObject* createUse() {
- return new SPUse();
- }
-
- bool useRegistered = SPFactory::instance().registerObject("svg:use", createUse);
-}
-
SPUse::SPUse()
: SPItem(),
child(NULL),
@@ -482,7 +470,7 @@ void SPUse::href_changed() {
if (refobj) {
Inkscape::XML::Node *childrepr = refobj->getRepr();
- SPObject* obj = SPFactory::instance().createObject(NodeTraits::get_type_string(*childrepr));
+ SPObject* obj = SPFactory::createObject(NodeTraits::get_type_string(*childrepr));
SPItem *item = dynamic_cast<SPItem *>(obj);
if (item) {