diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-05 11:26:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-05 17:19:42 +0100 |
commit | 29fefd93b8f8c7bd9fff1d5da2b7bb3fcfa4a89f (patch) | |
tree | b99f872993d1b504a9b0dd7727b6cc03f0e50bc1 /package/source/zippackage/ZipPackageStream.cxx | |
parent | ac1b9fd57b005305ea0dd426aa33b75200c825f4 (diff) |
loplugin:reducevarscope in package
Change-Id: If35738232ceb0442d57b9e9b37a850e0920e61b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105335
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package/source/zippackage/ZipPackageStream.cxx')
-rw-r--r-- | package/source/zippackage/ZipPackageStream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx index 71f9ad9f2ba1..1c055dcc2905 100644 --- a/package/source/zippackage/ZipPackageStream.cxx +++ b/package/source/zippackage/ZipPackageStream.cxx @@ -373,7 +373,6 @@ bool ZipPackageStream::ParsePackageRawStream() bool bOk = false; ::rtl::Reference< BaseEncryptionData > xTempEncrData; - sal_Int32 nMagHackSize = 0; Sequence < sal_Int8 > aHeader ( 4 ); try @@ -395,6 +394,7 @@ bool ZipPackageStream::ParsePackageRawStream() sal_Int32 nChecksumAlgorithm = 0; sal_Int32 nDerivedKeySize = 0; sal_Int32 nStartKeyGenID = 0; + sal_Int32 nMagHackSize = 0; if ( ZipFile::StaticFillData( xTempEncrData, nEncAlgorithm, nChecksumAlgorithm, nDerivedKeySize, nStartKeyGenID, nMagHackSize, aMediaType, GetOwnSeekStream() ) ) { // We'll want to skip the data we've just read, so calculate how much we just read |