From a04c60db8211d12df4e08b176ab8eaba1cc3198f Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Thu, 14 Feb 2013 20:52:23 +0100 Subject: fix yet another warning (bzr r12126) --- src/io/xsltstream.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/io/xsltstream.cpp') diff --git a/src/io/xsltstream.cpp b/src/io/xsltstream.cpp index 6b72627d3..1c260c0b3 100644 --- a/src/io/xsltstream.cpp +++ b/src/io/xsltstream.cpp @@ -230,10 +230,9 @@ void XsltOutputStream::flush() throw (StreamException) /** * Writes the specified byte to this output stream. */ -void XsltOutputStream::put(int ch) throw (StreamException) +void XsltOutputStream::put(gunichar ch) throw (StreamException) { - gunichar uch = (gunichar) ch; - outbuf.push_back(uch); + outbuf.push_back(ch); } -- cgit v1.2.3 From 1279e676eccb0b3786d21fd390e4965f78a003c1 Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Sun, 3 Mar 2013 10:18:37 +0100 Subject: Preparation to merge /dom/io and /io code (bug #1120585 ) (bzr r12168) --- src/io/xsltstream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/io/xsltstream.cpp') diff --git a/src/io/xsltstream.cpp b/src/io/xsltstream.cpp index 1c260c0b3..7a6632233 100644 --- a/src/io/xsltstream.cpp +++ b/src/io/xsltstream.cpp @@ -230,9 +230,10 @@ void XsltOutputStream::flush() throw (StreamException) /** * Writes the specified byte to this output stream. */ -void XsltOutputStream::put(gunichar ch) throw (StreamException) +int XsltOutputStream::put(gunichar ch) throw (StreamException) { outbuf.push_back(ch); + return 1; } -- cgit v1.2.3