summaryrefslogtreecommitdiffstats
path: root/src/object/sp-use.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-11-05 22:37:54 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-11-05 22:37:54 +0000
commit8fe8df064850bdaf5cd0c6015430c4b12132c8ab (patch)
tree2ef547a667ff1f1a3ba8fc66dc8350b5ae3c4089 /src/object/sp-use.cpp
parentReplacement for xmlBuildRelativeURI (diff)
downloadinkscape-8fe8df064850bdaf5cd0c6015430c4b12132c8ab.tar.gz
inkscape-8fe8df064850bdaf5cd0c6015430c4b12132c8ab.zip
remove Inkscape::URI::toString
Diffstat (limited to 'src/object/sp-use.cpp')
-rw-r--r--src/object/sp-use.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/object/sp-use.cpp b/src/object/sp-use.cpp
index 876c822e6..941bb6274 100644
--- a/src/object/sp-use.cpp
+++ b/src/object/sp-use.cpp
@@ -172,9 +172,8 @@ Inkscape::XML::Node* SPUse::write(Inkscape::XML::Document *xml_doc, Inkscape::XM
repr->setAttribute("height", sp_svg_length_write_with_units(this->height).c_str());
if (this->ref->getURI()) {
- gchar *uri_string = this->ref->getURI()->toString();
- repr->setAttribute("xlink:href", uri_string);
- g_free(uri_string);
+ auto uri_string = this->ref->getURI()->str();
+ repr->setAttribute("xlink:href", uri_string.c_str());
}
SPShape *shape = dynamic_cast<SPShape *>(child);