summaryrefslogtreecommitdiffstats
path: root/src/io/uristream.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-02-13 19:02:23 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-02-13 19:02:23 +0000
commit47d871e0b2a9ed5fb58d4d02edf840a0d4b19783 (patch)
tree4267c803d47dcc1852b51e6f9b622535e1d2d9d0 /src/io/uristream.cpp
parentBuild. Adding unistd header (fixes compilation on Win32 with OpenSuse cross-c... (diff)
downloadinkscape-47d871e0b2a9ed5fb58d4d02edf840a0d4b19783.tar.gz
inkscape-47d871e0b2a9ed5fb58d4d02edf840a0d4b19783.zip
fixing variable type in stream classes to what was intended (preparation for solving bug #1120585 )
(bzr r12123)
Diffstat (limited to 'src/io/uristream.cpp')
-rw-r--r--src/io/uristream.cpp15
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);
}