summaryrefslogtreecommitdiffstats
path: root/src/object/box3d.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/box3d.cpp
parentReplacement for xmlBuildRelativeURI (diff)
downloadinkscape-8fe8df064850bdaf5cd0c6015430c4b12132c8ab.tar.gz
inkscape-8fe8df064850bdaf5cd0c6015430c4b12132c8ab.zip
remove Inkscape::URI::toString
Diffstat (limited to 'src/object/box3d.cpp')
-rw-r--r--src/object/box3d.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/object/box3d.cpp b/src/object/box3d.cpp
index 98dfddbb4..94920e419 100644
--- a/src/object/box3d.cpp
+++ b/src/object/box3d.cpp
@@ -217,9 +217,8 @@ Inkscape::XML::Node* SPBox3D::write(Inkscape::XML::Document *xml_doc, Inkscape::
/* box is not yet linked to a perspective; use the document's current perspective */
SPDocument *doc = object->document;
if (box->persp_ref->getURI()) {
- gchar *uri_string = box->persp_ref->getURI()->toString();
- repr->setAttribute("inkscape:perspectiveID", uri_string);
- g_free(uri_string);
+ auto uri_string = box->persp_ref->getURI()->str();
+ repr->setAttribute("inkscape:perspectiveID", uri_string.c_str());
} else {
Glib::ustring href = "#";
href += doc->getCurrentPersp3D()->getId();