diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-02-15 17:41:43 +0000 |
|---|---|---|
| committer | Jabiertxo Arraiza Zenotz <jtx@jtx.marker.es> | 2013-02-15 17:41:43 +0000 |
| commit | f986ce1bf97a05515103c828a42ff9a77a244c02 (patch) | |
| tree | d65419c34b2c3b97230d282d508384565e477109 /src/io/uristream.cpp | |
| parent | Removed unused function (diff) | |
| parent | Bug #561503: fix typo in earlier fix (r11133) (diff) | |
| download | inkscape-f986ce1bf97a05515103c828a42ff9a77a244c02.tar.gz inkscape-f986ce1bf97a05515103c828a42ff9a77a244c02.zip | |
Merge to trunk
(bzr r11950.2.3)
Diffstat (limited to 'src/io/uristream.cpp')
| -rw-r--r-- | src/io/uristream.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/io/uristream.cpp b/src/io/uristream.cpp index 19994bc82..8d7fd9b38 100644 --- a/src/io/uristream.cpp +++ b/src/io/uristream.cpp @@ -402,16 +402,14 @@ void UriOutputStream::flush() throw(StreamException) /** * Writes the specified byte to this output stream. */ -void UriOutputStream::put(int ch) throw(StreamException) +void UriOutputStream::put(gunichar ch) throw(StreamException) { if (closed) return; unsigned char uch; - gunichar gch; switch (scheme) { - case SCHEME_FILE: if (!outf) return; @@ -420,13 +418,11 @@ void UriOutputStream::put(int ch) throw(StreamException) Glib::ustring err = "ERROR writing to file "; throw StreamException(err); } - //fwrite(uch, 1, 1, outf); - break; + break; case SCHEME_DATA: - gch = (gunichar) ch; - data.push_back(gch); - break; + data.push_back(ch); + break; }//switch @@ -474,8 +470,7 @@ void UriWriter::flush() throw(StreamException) */ void UriWriter::put(gunichar ch) throw(StreamException) { - int ich = (int)ch; - outputStream->put(ich); + outputStream->put(ch); } |
