summaryrefslogtreecommitdiffstats
path: root/src/dom/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/dom/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/dom/io/uristream.cpp')
-rw-r--r--src/dom/io/uristream.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dom/io/uristream.cpp b/src/dom/io/uristream.cpp
index 09b0ac361..68a14a166 100644
--- a/src/dom/io/uristream.cpp
+++ b/src/dom/io/uristream.cpp
@@ -372,7 +372,7 @@ void UriOutputStream::flush() throw(StreamException)
/**
* Writes the specified byte to this output stream.
*/
-int UriOutputStream::put(XMLCh ch) throw(StreamException)
+int UriOutputStream::put(gunichar ch) throw(StreamException)
{
if (closed)
return -1;
@@ -440,10 +440,9 @@ void UriWriter::flush() throw(StreamException)
/**
*
*/
-int UriWriter::put(XMLCh ch) throw(StreamException)
+int UriWriter::put(gunichar ch) throw(StreamException)
{
- int ich = (int)ch;
- if (outputStream->put(ich) < 0)
+ if (outputStream->put(ch) < 0)
return -1;
return 1;
}