summaryrefslogtreecommitdiffstats
path: root/src/dom/io/base64stream.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/base64stream.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/base64stream.cpp')
-rw-r--r--src/dom/io/base64stream.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dom/io/base64stream.cpp b/src/dom/io/base64stream.cpp
index f71532e8b..2cab2b3f4 100644
--- a/src/dom/io/base64stream.cpp
+++ b/src/dom/io/base64stream.cpp
@@ -292,12 +292,12 @@ void Base64OutputStream::putCh(int ch)
/**
* Writes the specified byte to this output stream.
*/
-void Base64OutputStream::put(XMLCh ch)
+int Base64OutputStream::put(XMLCh ch)
{
if (closed)
{
//probably throw an exception here
- return;
+ return -1;
}
outBuf <<= 8;
@@ -324,6 +324,8 @@ void Base64OutputStream::put(XMLCh ch)
bitCount = 0;
outBuf = 0L;
}
+
+ return 1;
}