summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorPeter Moulder <peter.moulder@monash.edu>2009-04-07 07:38:27 +0000
committerpjrm <pjrm@users.sourceforge.net>2009-04-07 07:38:27 +0000
commit6ad831cc22d5b5b7de0193b9a5cfbc56328e3282 (patch)
tree59b67f0348797415c5d521b0342e369f2ee8ffc1 /src/document.cpp
parentnoop: whitespace (diff)
downloadinkscape-6ad831cc22d5b5b7de0193b9a5cfbc56328e3282.tar.gz
inkscape-6ad831cc22d5b5b7de0193b9a5cfbc56328e3282.zip
functional noop: Change prepend_current_dir_if_relative to return the result rather than taking a pointer to where to put the result. (Clarifies that the existing value isn't used.)
(bzr r7653)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 2a9014e3e..7dbfe0d2f 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -275,7 +275,7 @@ sp_document_create(Inkscape::XML::Document *rdoc,
document->rroot = rroot;
#ifndef WIN32
- prepend_current_dir_if_relative(&(document->uri), uri);
+ document->uri = prepend_current_dir_if_relative(uri);
#else
// FIXME: it may be that prepend_current_dir_if_relative works OK on windows too, test!
document->uri = uri? g_strdup(uri) : NULL;
@@ -628,7 +628,7 @@ void sp_document_set_uri(SPDocument *document, gchar const *uri)
if (uri) {
#ifndef WIN32
- prepend_current_dir_if_relative(&(document->uri), uri);
+ document->uri = prepend_current_dir_if_relative(uri);
#else
// FIXME: it may be that prepend_current_dir_if_relative works OK on windows too, test!
document->uri = g_strdup(uri);