summaryrefslogtreecommitdiffstats
path: root/src/object/sp-tref.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-tref.cpp
parentReplacement for xmlBuildRelativeURI (diff)
downloadinkscape-8fe8df064850bdaf5cd0c6015430c4b12132c8ab.tar.gz
inkscape-8fe8df064850bdaf5cd0c6015430c4b12132c8ab.zip
remove Inkscape::URI::toString
Diffstat (limited to 'src/object/sp-tref.cpp')
-rw-r--r--src/object/sp-tref.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object/sp-tref.cpp b/src/object/sp-tref.cpp
index c3db8780f..ef5b6c106 100644
--- a/src/object/sp-tref.cpp
+++ b/src/object/sp-tref.cpp
@@ -173,10 +173,10 @@ Inkscape::XML::Node* SPTRef::write(Inkscape::XML::Document *xml_doc, Inkscape::X
this->attributes.writeTo(repr);
if (this->uriOriginalRef->getURI()) {
- gchar *uri_string = this->uriOriginalRef->getURI()->toString();
+ auto uri = this->uriOriginalRef->getURI()->str();
+ auto uri_string = uri.c_str();
debug("uri_string=%s", uri_string);
repr->setAttribute("xlink:href", uri_string);
- g_free(uri_string);
}
SPItem::write(xml_doc, repr, flags);