summaryrefslogtreecommitdiffstats
path: root/src/io/base64stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/base64stream.cpp')
-rw-r--r--src/io/base64stream.cpp28
1 files changed, 23 insertions, 5 deletions
diff --git a/src/io/base64stream.cpp b/src/io/base64stream.cpp
index 0a28a8cc3..28c819347 100644
--- a/src/io/base64stream.cpp
+++ b/src/io/base64stream.cpp
@@ -5,18 +5,35 @@
* of Base64 data with a stream interface, hiding
* the implementation from the user.
*
+ * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
+ *
* Authors:
- * Bob Jamison <rjamison@titan.com>
+
+ * Bob Jamison
+ *
+ * Copyright (C) 2006 Bob Jamison
+ *
+
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
*
- * Copyright (C) 2004 Inkscape.org
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
*
- * Released under GNU GPL, read the file 'COPYING' for more information
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "base64stream.h"
+
namespace Inkscape
{
namespace IO
@@ -273,12 +290,12 @@ void Base64OutputStream::putCh(int ch)
/**
* Writes the specified byte to this output stream.
*/
-void Base64OutputStream::put(int ch)
+int Base64OutputStream::put(gunichar ch)
{
if (closed)
{
//probably throw an exception here
- return;
+ return -1;
}
outBuf <<= 8;
@@ -305,6 +322,7 @@ void Base64OutputStream::put(int ch)
bitCount = 0;
outBuf = 0L;
}
+ return 1;
}