X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdom%2Fio%2Fbase64stream.cpp;h=509c67d6d80f7fe7ae94b60a7cfbb294a31c8ec5;hb=HEAD;hp=f71532e8b97937cc2473f0b7927a78c7d8539bc8;hpb=5d8a2d163e4927fffb4efae5d811a4e644c170ce;p=inkscape.git diff --git a/src/dom/io/base64stream.cpp b/src/dom/io/base64stream.cpp index f71532e8b..509c67d6d 100644 --- a/src/dom/io/base64stream.cpp +++ b/src/dom/io/base64stream.cpp @@ -188,7 +188,7 @@ int Base64InputStream::get() //# B A S E 6 4 O U T P U T S T R E A M //######################################################################### -static char *base64encode = +static char const *base64encode = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** @@ -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; }