From 37368e2be8cd1031d090bb57e01f58cfdc872394 Mon Sep 17 00:00:00 2001 From: Bob Jamison Date: Tue, 29 Apr 2008 02:00:54 +0000 Subject: More documentation. Fix scope bug in uristream.cpp. Remove warnings. (bzr r5540) --- src/dom/io/uristream.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dom/io/uristream.cpp') 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. -- cgit v1.2.3