diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2013-03-03 09:18:37 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2013-03-03 09:18:37 +0000 |
| commit | 1279e676eccb0b3786d21fd390e4965f78a003c1 (patch) | |
| tree | 7caebee8350e7ddced1dfdccb1b34d38a7d47b8c /src/io/uristream.cpp | |
| parent | Fix autotools deprecation warnings (diff) | |
| download | inkscape-1279e676eccb0b3786d21fd390e4965f78a003c1.tar.gz inkscape-1279e676eccb0b3786d21fd390e4965f78a003c1.zip | |
Preparation to merge /dom/io and /io code (bug #1120585 )
(bzr r12168)
Diffstat (limited to 'src/io/uristream.cpp')
| -rw-r--r-- | src/io/uristream.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/io/uristream.cpp b/src/io/uristream.cpp index 8d7fd9b38..37c13ada0 100644 --- a/src/io/uristream.cpp +++ b/src/io/uristream.cpp @@ -402,17 +402,17 @@ void UriOutputStream::flush() throw(StreamException) /** * Writes the specified byte to this output stream. */ -void UriOutputStream::put(gunichar ch) throw(StreamException) +int UriOutputStream::put(gunichar ch) throw(StreamException) { if (closed) - return; + return -1; unsigned char uch; switch (scheme) { case SCHEME_FILE: if (!outf) - return; + return -1; uch = (unsigned char)(ch & 0xff); if (fputc(uch, outf) == EOF) { Glib::ustring err = "ERROR writing to file "; @@ -425,7 +425,7 @@ void UriOutputStream::put(gunichar ch) throw(StreamException) break; }//switch - + return 1; } |
