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-gradient.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/object/sp-gradient.cpp') diff --git a/src/object/sp-gradient.cpp b/src/object/sp-gradient.cpp index c8e7f92b0..9aee288be 100644 --- a/src/object/sp-gradient.cpp +++ b/src/object/sp-gradient.cpp @@ -629,9 +629,8 @@ Inkscape::XML::Node *SPGradient::write(Inkscape::XML::Document *xml_doc, Inkscap } 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()); } if ((flags & SP_OBJECT_WRITE_ALL) || this->units_set) { -- cgit v1.2.3