[Libreoffice-commits] core.git: comphelper/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Mar 5 07:47:26 UTC 2019
comphelper/source/misc/docpasswordhelper.cxx | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
New commits:
commit 4c28917c14734b649b5f850c46615c1d1f576665
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Mar 4 21:19:06 2019 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Mar 5 08:47:01 2019 +0100
Simplify Sequence construction
Change-Id: I96100bcca965943aa59a4da4e578a0792303d2bb
Reviewed-on: https://gerrit.libreoffice.org/68707
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/comphelper/source/misc/docpasswordhelper.cxx b/comphelper/source/misc/docpasswordhelper.cxx
index 6cf07d4795fb..890a25fd92d4 100644
--- a/comphelper/source/misc/docpasswordhelper.cxx
+++ b/comphelper/source/misc/docpasswordhelper.cxx
@@ -253,11 +253,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence(
const OUString& aUString )
{
sal_uInt16 nHash = GetXLHashAsUINT16( aUString );
- Sequence< sal_Int8 > aResult( 2 );
- aResult[0] = ( nHash >> 8 );
- aResult[1] = ( nHash & 0xFF );
-
- return aResult;
+ return {sal_Int8(nHash >> 8), sal_Int8(nHash & 0xFF)};
}
More information about the Libreoffice-commits
mailing list