summaryrefslogtreecommitdiffstats
path: root/src/sp-use.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2015-04-26 09:44:42 +0000
committerMarc Jeanmougin <mc@M0nst3r.bouyguesbox.fr>2015-04-26 09:44:42 +0000
commit1c6d7546699e45643c2ab8e1d41d7b6f4fc52365 (patch)
treea56b6da9bb0f660d5986919ac8d75dc04113cd69 /src/sp-use.cpp
parentmore cast cleanup (diff)
parentRename libgc/ => inkgc/ to reflect difference from Boehm GC (diff)
downloadinkscape-1c6d7546699e45643c2ab8e1d41d7b6f4fc52365.tar.gz
inkscape-1c6d7546699e45643c2ab8e1d41d7b6f4fc52365.zip
merge
(bzr r13922.1.12)
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) {