summaryrefslogtreecommitdiffstats
path: root/src/dom/io/bufferstream.cpp
diff options
context:
space:
mode:
authorAaron Spike <aaron@ekips.org>2006-06-13 02:13:02 +0000
committeracspike <acspike@users.sourceforge.net>2006-06-13 02:13:02 +0000
commitc72c956fad79a5b775c5e4dd6296170f344b0944 (patch)
treeca0ed622ea827fce7a4c8839ae73d6abc25545bb /src/dom/io/bufferstream.cpp
parentpatch [ 1503865 ] Siox performance patch (diff)
downloadinkscape-c72c956fad79a5b775c5e4dd6296170f344b0944.tar.gz
inkscape-c72c956fad79a5b775c5e4dd6296170f344b0944.zip
patch [ 1503869 ] ODF formatting fix
(bzr r1209)
Diffstat (limited to 'src/dom/io/bufferstream.cpp')
-rw-r--r--src/dom/io/bufferstream.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dom/io/bufferstream.cpp b/src/dom/io/bufferstream.cpp
index 4664b07e9..6c3956a60 100644
--- a/src/dom/io/bufferstream.cpp
+++ b/src/dom/io/bufferstream.cpp
@@ -146,11 +146,12 @@ void BufferOutputStream::flush()
/**
* Writes the specified byte to this output stream.
*/
-void BufferOutputStream::put(XMLCh ch)
+int BufferOutputStream::put(XMLCh ch)
{
if (closed)
- return;
+ return -1;
buffer.push_back(ch);
+ return 1;
}