comphelper/source/misc/docpasswordhelper.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit 4c28917c14734b649b5f850c46615c1d1f576665
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Mon Mar 4 21:19:06 2019 +0100
Commit:     Stephan Bergmann <[email protected]>
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 <[email protected]>

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)};
 }
 
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to