sc/source/ui/unoobj/chart2uno.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 1e2c5f68119d8856b2da1497c29a09e6dc8f06e9
Author: Markus Mohrhard <markus.mohrh...@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 <c...@libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrh...@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() )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to