diff options
| author | Peter Moulder <peter.moulder@monash.edu> | 2009-04-07 07:38:27 +0000 |
|---|---|---|
| committer | pjrm <pjrm@users.sourceforge.net> | 2009-04-07 07:38:27 +0000 |
| commit | 6ad831cc22d5b5b7de0193b9a5cfbc56328e3282 (patch) | |
| tree | 59b67f0348797415c5d521b0342e369f2ee8ffc1 /src/document.cpp | |
| parent | noop: whitespace (diff) | |
| download | inkscape-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.cpp | 4 |
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); |
