summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-03-04 21:19:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-03-05 08:47:01 +0100
commit4c28917c14734b649b5f850c46615c1d1f576665 (patch)
treee604a81c50e66ba16472378ad0c3fc34e1385ac3 /comphelper
parentbc3c181b81f931a931e822ab0fe51a22bdd433ba (diff)
Simplify Sequence construction
Change-Id: I96100bcca965943aa59a4da4e578a0792303d2bb Reviewed-on: https://gerrit.libreoffice.org/68707 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/docpasswordhelper.cxx6
1 files changed, 1 insertions, 5 deletions
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)};
}