From 8fe8df064850bdaf5cd0c6015430c4b12132c8ab Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Mon, 5 Nov 2018 23:37:54 +0100 Subject: remove Inkscape::URI::toString --- src/object/sp-tref.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/object/sp-tref.cpp') 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); -- cgit v1.2.3