[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Sat Dec 19 15:31:04 PST 2015
sc/source/ui/unoobj/chart2uno.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 1e2c5f68119d8856b2da1497c29a09e6dc8f06e9
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Fri Dec 18 23:05:49 2015 +0100
no need to repeatedly call getLength
Change-Id: I0cf06ab1975886fbcc7c751c98c5aa1fdeaa8979
Reviewed-on: https://gerrit.libreoffice.org/20810
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 695ab81..20932b4 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -2000,7 +2000,7 @@ uno::Sequence< beans::PropertyValue > SAL_CALL ScChart2DataProvider::detectArgum
xDataSource->getDataSequences();
std::map<std::pair<OUString, OUString>,sal_Int32> aOldEntryToIndex;
- for( sal_Int32 nIndex = 0; nIndex < aOldSequences.getLength(); nIndex++ )
+ for( sal_Int32 nIndex = 0, n = aOldSequences.getLength(); nIndex < n; nIndex++ )
{
const uno::Reference< chart2::data::XLabeledDataSequence>& xOld( aOldSequences[nIndex] );
if( xOld.is() )
@@ -2010,7 +2010,7 @@ uno::Sequence< beans::PropertyValue > SAL_CALL ScChart2DataProvider::detectArgum
}
}
- for( sal_Int32 nNewIndex = 0; nNewIndex < aNewSequences.getLength(); nNewIndex++ )
+ for( sal_Int32 nNewIndex = 0, n = aNewSequences.getLength(); nNewIndex < n; nNewIndex++ )
{
const uno::Reference< chart2::data::XLabeledDataSequence>& xNew( aNewSequences[nNewIndex] );
if( !xNew.is() )
More information about the Libreoffice-commits
mailing list