diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-12-26 10:40:24 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-12-26 23:09:20 +0100 |
commit | 9c95415de877af1430ab5b7123e11dedd0ea622c (patch) | |
tree | 0a4bad23e32235523c9164a6094c0edea7f03f25 /package | |
parent | a23a7eea5cfcdc50d09be248828cb1e6293e5ebb (diff) |
Let comphelper::Base64::decode* take std::u16string_view
Change-Id: I5b04f7adf11c61f52b7bfb0f52c8c075f838f0f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127480
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'package')
-rw-r--r-- | package/source/manifest/ManifestImport.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/package/source/manifest/ManifestImport.cxx b/package/source/manifest/ManifestImport.cxx index f02629543cf4..7fbb3cff512f 100644 --- a/package/source/manifest/ManifestImport.cxx +++ b/package/source/manifest/ManifestImport.cxx @@ -112,9 +112,9 @@ void ManifestImport::doEncryptedCipherValue() { aKeyInfoSequence[2].Name = "CipherValue"; uno::Sequence < sal_Int8 > aDecodeBuffer; - ::comphelper::Base64::decode(aDecodeBuffer, aCurrentCharacters.toString()); + ::comphelper::Base64::decode(aDecodeBuffer, aCurrentCharacters); aKeyInfoSequence[2].Value <<= aDecodeBuffer; - aCurrentCharacters = ""; // consumed + aCurrentCharacters.setLength(0); // consumed } else bIgnoreEncryptData = true; @@ -126,9 +126,9 @@ void ManifestImport::doEncryptedKeyId() { aKeyInfoSequence[0].Name = "KeyId"; uno::Sequence < sal_Int8 > aDecodeBuffer; - ::comphelper::Base64::decode(aDecodeBuffer, aCurrentCharacters.toString()); + ::comphelper::Base64::decode(aDecodeBuffer, aCurrentCharacters); aKeyInfoSequence[0].Value <<= aDecodeBuffer; - aCurrentCharacters = ""; // consumed + aCurrentCharacters.setLength(0); // consumed } else bIgnoreEncryptData = true; @@ -140,9 +140,9 @@ void ManifestImport::doEncryptedKeyPacket() { aKeyInfoSequence[1].Name = "KeyPacket"; uno::Sequence < sal_Int8 > aDecodeBuffer; - ::comphelper::Base64::decode(aDecodeBuffer, aCurrentCharacters.toString()); + ::comphelper::Base64::decode(aDecodeBuffer, aCurrentCharacters); aKeyInfoSequence[1].Value <<= aDecodeBuffer; - aCurrentCharacters = ""; // consumed + aCurrentCharacters.setLength(0); // consumed } else bIgnoreEncryptData = true; |