diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2008-04-29 02:00:54 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2008-04-29 02:00:54 +0000 |
| commit | 37368e2be8cd1031d090bb57e01f58cfdc872394 (patch) | |
| tree | d2f9d7051e52b8e6c14ffaa9ebb5d67cc6eca953 /src/dom/io/uristream.cpp | |
| parent | Cmake: Fixed optional dependency linking (diff) | |
| download | inkscape-37368e2be8cd1031d090bb57e01f58cfdc872394.tar.gz inkscape-37368e2be8cd1031d090bb57e01f58cfdc872394.zip | |
More documentation. Fix scope bug in uristream.cpp. Remove warnings.
(bzr r5540)
Diffstat (limited to 'src/dom/io/uristream.cpp')
| -rw-r--r-- | src/dom/io/uristream.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dom/io/uristream.cpp b/src/dom/io/uristream.cpp index b86a71442..0dc8423f4 100644 --- a/src/dom/io/uristream.cpp +++ b/src/dom/io/uristream.cpp @@ -84,9 +84,8 @@ void UriInputStream::init() throw (StreamException) case URI::SCHEME_DATA: { - DOMString path = uri.getPath(); - data = (unsigned char *) uri.getPath().c_str(); - //printf("in data:'%s'\n", data); + data = uri.getPath(); + //printf("in data:'%s'\n", data.c_str()); dataPos = 0; dataLen = uri.getPath().size(); break; @@ -358,7 +357,7 @@ void UriOutputStream::close() throw(StreamException) case URI::SCHEME_DATA: { - uri = URI(data.c_str()); + uri = URI(data); break; } @@ -367,6 +366,7 @@ void UriOutputStream::close() throw(StreamException) closed = true; } + /** * Flushes this output stream and forces any buffered output * bytes to be written out. |
