diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-03-05 08:43:18 +0000 |
|---|---|---|
| committer | Jabiertxo Arraiza Zenotz <jtx@jtx.marker.es> | 2013-03-05 08:43:18 +0000 |
| commit | a33dbbc4fbad29c187611660d3651bbe57243903 (patch) | |
| tree | 1260bfa9c376aa441bb26087283ed0014f5986ec /src/io/uristream.cpp | |
| parent | Fix sintax (diff) | |
| parent | merge from branch (diff) | |
| download | inkscape-a33dbbc4fbad29c187611660d3651bbe57243903.tar.gz inkscape-a33dbbc4fbad29c187611660d3651bbe57243903.zip | |
refactor bsplineSpirolive
(bzr r11950.1.44)
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; } |
