summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-02 13:37:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-04 14:06:37 +0200
commita36ada7c5400735b6d03d7215a32ea7e98aacd63 (patch)
treed90c9995144614d47b997f8becdf488caa25cd53 /store
parent27f1827afa11ba9c5d912614dc84dd308ecf8b5f (diff)
loplugin:reducevarscope in store..svtools
Change-Id: Iaa6c6eac15cb73fc2a76ba1c5241297c94d297cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103839 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'store')
-rw-r--r--store/source/stordata.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/store/source/stordata.cxx b/store/source/stordata.cxx
index 7e989bc43352..f8da50d1a65e 100644
--- a/store/source/stordata.cxx
+++ b/store/source/stordata.cxx
@@ -590,7 +590,7 @@ OStoreDirectoryPageObject::scope (
{
page const & rPage = PAGE();
- sal_uInt32 index0, index1, index2, index3;
+ sal_uInt32 index0, index1, index2;
// direct.
sal_uInt32 nCount = OStoreDirectoryDataBlock::directCount;
@@ -682,7 +682,7 @@ OStoreDirectoryPageObject::scope (
sal_uInt32 n = nPage;
// Reduce to triple indirect i(3), double indirect n.
- index3 = n / (nCapacity * nCapacity * nCapacity);
+ sal_uInt32 index3 = n / (nCapacity * nCapacity * nCapacity);
n = n % (nCapacity * nCapacity * nCapacity);
// Reduce to double indirect i(2), single indirect n.