From 4c28917c14734b649b5f850c46615c1d1f576665 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 4 Mar 2019 21:19:06 +0100 Subject: Simplify Sequence construction Change-Id: I96100bcca965943aa59a4da4e578a0792303d2bb Reviewed-on: https://gerrit.libreoffice.org/68707 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- comphelper/source/misc/docpasswordhelper.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'comphelper') 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)}; } -- cgit