summaryrefslogtreecommitdiffstats
path: root/src/io/base64stream.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-03-03 09:18:37 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-03-03 09:18:37 +0000
commit1279e676eccb0b3786d21fd390e4965f78a003c1 (patch)
tree7caebee8350e7ddced1dfdccb1b34d38a7d47b8c /src/io/base64stream.cpp
parentFix autotools deprecation warnings (diff)
downloadinkscape-1279e676eccb0b3786d21fd390e4965f78a003c1.tar.gz
inkscape-1279e676eccb0b3786d21fd390e4965f78a003c1.zip
Preparation to merge /dom/io and /io code (bug #1120585 )
(bzr r12168)
Diffstat (limited to 'src/io/base64stream.cpp')
-rw-r--r--src/io/base64stream.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/io/base64stream.cpp b/src/io/base64stream.cpp
index 42a6ba1e4..28c819347 100644
--- a/src/io/base64stream.cpp
+++ b/src/io/base64stream.cpp
@@ -290,12 +290,12 @@ void Base64OutputStream::putCh(int ch)
/**
* Writes the specified byte to this output stream.
*/
-void Base64OutputStream::put(gunichar ch)
+int Base64OutputStream::put(gunichar ch)
{
if (closed)
{
//probably throw an exception here
- return;
+ return -1;
}
outBuf <<= 8;
@@ -322,6 +322,7 @@ void Base64OutputStream::put(gunichar ch)
bitCount = 0;
outBuf = 0L;
}
+ return 1;
}