From 07ba372985eb0884e46b9285c4f7c099eb43a392 Mon Sep 17 00:00:00 2001 From: Pierre-André Jacquod Date: Sun, 2 Oct 2011 12:05:46 +0200 Subject: cppcheck scope reduction comphelper/.. storagehelper.cxx --- comphelper/source/misc/storagehelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'comphelper/source/misc') diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx index 2684d94ea054..7822f67d09d9 100644 --- a/comphelper/source/misc/storagehelper.cxx +++ b/comphelper/source/misc/storagehelper.cxx @@ -424,9 +424,9 @@ uno::Sequence< beans::NamedValue > OStorageHelper::CreatePackageEncryptionData( { // TODO/LATER: Should not the method be part of DocPasswordHelper? uno::Sequence< beans::NamedValue > aEncryptionData; - sal_Int32 nSha1Ind = 0; if ( aPassword.getLength() ) { + sal_Int32 nSha1Ind = 0; // generate SHA256 start key try { -- cgit v1.2.3