summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/docpasswordhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/docpasswordhelper.cxx b/comphelper/source/misc/docpasswordhelper.cxx
index 71f92db48d00..a31f829ddfa9 100644
--- a/comphelper/source/misc/docpasswordhelper.cxx
+++ b/comphelper/source/misc/docpasswordhelper.cxx
@@ -114,7 +114,7 @@ DocPasswordHelper::GenerateNewModifyPasswordInfoOOXML(std::u16string_view aPassw
uno::Sequence<sal_Int8> aSalt = GenerateRandomByteSequence(16);
OUStringBuffer aBuffer;
comphelper::Base64::encode(aBuffer, aSalt);
- OUString sSalt = aBuffer.toString();
+ OUString sSalt = aBuffer.makeStringAndClear();
sal_Int32 const nIterationCount = 100000;
OUString sAlgorithm("SHA-512");