Code

Translations. French translation minor update.
[inkscape.git] / src / dom / io / base64stream.cpp
index f71532e8b97937cc2473f0b7927a78c7d8539bc8..509c67d6d80f7fe7ae94b60a7cfbb294a31c8ec5 100644 (file)
@@ -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;
 }