diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2015-02-27 21:53:40 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2015-02-27 21:53:40 +0000 |
| commit | 431e7fb1b5f3ad3b7b25672c7992317907913e43 (patch) | |
| tree | b222e96bcba9e4863322f38b39f8926670c0949d /src/sp-tag-use.cpp | |
| parent | fixing write knot (diff) | |
| parent | i18n (diff) | |
| download | inkscape-431e7fb1b5f3ad3b7b25672c7992317907913e43.tar.gz inkscape-431e7fb1b5f3ad3b7b25672c7992317907913e43.zip | |
update to trunk
(bzr r13645.1.23)
Diffstat (limited to 'src/sp-tag-use.cpp')
| -rw-r--r-- | src/sp-tag-use.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/sp-tag-use.cpp b/src/sp-tag-use.cpp index 5851598f2..935f7429e 100644 --- a/src/sp-tag-use.cpp +++ b/src/sp-tag-use.cpp @@ -10,10 +10,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - #include <cstring> #include <string> @@ -30,13 +26,6 @@ #include "sp-tag-use.h" #include "sp-tag-use-reference.h" -namespace { - SPObject* createTagUse() { - return new SPTagUse(); - } - bool tagUseRegistered = SPFactory::instance().registerObject("inkscape:tagref", createTagUse); -} - SPTagUse::SPTagUse() { href = NULL; @@ -173,7 +162,7 @@ SPTagUse::href_changed(SPObject */*old_ref*/, SPObject */*ref*/) Inkscape::XML::Node *childrepr = refobj->getRepr(); const std::string typeString = NodeTraits::get_type_string(*childrepr); - SPObject* child_ = SPFactory::instance().createObject(typeString); + SPObject* child_ = SPFactory::createObject(typeString); if (child_) { child = child_; attach(child_, lastChild()); |
