sc/source/ui/unoobj/dapiuno.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 5b6185d27781d5876d1c6fb18d848a7babdfec88 Author: Tamás Zolnai <tamas.zol...@collabora.com> Date: Sat Sep 17 07:05:09 2016 +0200 Reduce scope of soma local variables Change-Id: I6e8938fa76e6afe0763610266b25ebf5ffe48d56 diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx index a27ebbc..94b01ec 100644 --- a/sc/source/ui/unoobj/dapiuno.cxx +++ b/sc/source/ui/unoobj/dapiuno.cxx @@ -2557,11 +2557,9 @@ Reference< XDataPilotField > SAL_CALL ScDataPilotFieldObj::createNameGroup( cons // remove the selected items from their groups // (empty groups are removed, too) - sal_Int32 nEntryCount = rItems.getLength(); - sal_Int32 nEntry; if ( pGroupDimension ) { - for (nEntry=0; nEntry<nEntryCount; nEntry++) + for (sal_Int32 nEntry = 0; nEntry < rItems.getLength(); nEntry++) { const OUString& aEntryName = rItems[nEntry]; if ( pBaseGroupDim ) @@ -2624,7 +2622,7 @@ Reference< XDataPilotField > SAL_CALL ScDataPilotFieldObj::createNameGroup( cons throw RuntimeException(); } - for (nEntry=0; nEntry<nEntryCount; nEntry++) + for (sal_Int32 nEntry = 0; nEntry < rItems.getLength(); nEntry++) { OUString aEntryName(rItems[nEntry]);
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits