diff options
| author | Peter Moulder <peter.moulder@monash.edu> | 2009-04-06 21:53:09 +0000 |
|---|---|---|
| committer | pjrm <pjrm@users.sourceforge.net> | 2009-04-06 21:53:09 +0000 |
| commit | 56a755c65edfaf6ad3606f93da79937e9c0cab70 (patch) | |
| tree | 09c171082863e539c7da6c9b68126acc79544522 /src/extension/internal/odf.cpp | |
| parent | functional noop: (EmfWin32::save): Remove an unneeded strdup operation. (diff) | |
| download | inkscape-56a755c65edfaf6ad3606f93da79937e9c0cab70.tar.gz inkscape-56a755c65edfaf6ad3606f93da79937e9c0cab70.zip | |
noop: Rename argument from uri to filename for Extension::...::save implementations, given that that's how it's used at present.
Add a couple of fixme comments to do with use of this argument.
(bzr r7637)
Diffstat (limited to 'src/extension/internal/odf.cpp')
| -rw-r--r-- | src/extension/internal/odf.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/extension/internal/odf.cpp b/src/extension/internal/odf.cpp index c15b839d7..cc8489302 100644 --- a/src/extension/internal/odf.cpp +++ b/src/extension/internal/odf.cpp @@ -2367,12 +2367,14 @@ OdfOutput::reset() * Descends into the SVG tree, mapping things to ODF when appropriate */ void -OdfOutput::save(Inkscape::Extension::Output */*mod*/, SPDocument *doc, gchar const *uri) +OdfOutput::save(Inkscape::Extension::Output */*mod*/, SPDocument *doc, gchar const *filename) { reset(); - //g_message("native file:%s\n", uri); - documentUri = URI(uri); + //g_message("native file:%s\n", filename); + documentUri = URI(filename); + /* fixme: It looks like we really are using documentUri as a URI, so we ought to call + * g_filename_to_uri for the URI constructor. */ ZipFile zf; preprocess(zf, doc->rroot); @@ -2395,7 +2397,7 @@ OdfOutput::save(Inkscape::Extension::Output */*mod*/, SPDocument *doc, gchar con return; } - if (!zf.writeFile(uri)) + if (!zf.writeFile(filename)) { return; } |
