From a36ada7c5400735b6d03d7215a32ea7e98aacd63 Mon Sep 17 00:00:00 2001 From: Noel Date: Fri, 2 Oct 2020 13:37:58 +0200 Subject: loplugin:reducevarscope in store..svtools Change-Id: Iaa6c6eac15cb73fc2a76ba1c5241297c94d297cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103839 Tested-by: Jenkins Reviewed-by: Noel Grandin --- store/source/stordata.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'store') 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. -- cgit