diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-06-27 00:39:34 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-07-06 18:25:49 +0200 |
commit | 0d0bf4132d7cf81306a3de6592fce40ab69ef040 (patch) | |
tree | 124be65dcdc8652d640729959d299b2e2858bac8 /include/comphelper | |
parent | fc434c8fd62ccb6d083af075f1ab83da6bd76b8d (diff) |
base64: change impl. of encodig to also work with OStringBuffer
+ make test simpler and add a test case for the new behaviour
Change-Id: Ifc743835f0cd634c79929ce22dc36b5a822a7e88
Reviewed-on: https://gerrit.libreoffice.org/56969
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/base64.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/comphelper/base64.hxx b/include/comphelper/base64.hxx index 3452094e72d7..cfa80bf39a25 100644 --- a/include/comphelper/base64.hxx +++ b/include/comphelper/base64.hxx @@ -23,8 +23,8 @@ #include <comphelper/comphelperdllapi.h> #include <sal/types.h> -#include <rtl/ustring.hxx> #include <rtl/ustrbuf.hxx> +#include <rtl/strbuf.hxx> #include <com/sun/star/uno/Sequence.h> namespace comphelper { @@ -35,6 +35,8 @@ public: /** encodes the given byte sequence into Base64 */ static void encode(OUStringBuffer& aStrBuffer, const css::uno::Sequence<sal_Int8>& aPass); + static void encode(OStringBuffer& aStrBuffer, const css::uno::Sequence<sal_Int8>& aPass); + // Decode a base 64 encoded string into a sequence of bytes. The first // version can be used for attribute values only, because it does not // return any chars left from conversion. |