summaryrefslogtreecommitdiffstats
path: root/src/dom/io/bufferstream.cpp
diff options
context:
space:
mode:
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;
}