[Libreoffice-commits] core.git: basic/source

Noel Grandin noel at peralex.com
Mon Jan 11 23:00:43 PST 2016


 basic/source/sbx/sbxarray.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c93486bbb85ae19b6d15395afbd7aec3c5db7e89
Author: Noel Grandin <noel at peralex.com>
Date:   Tue Jan 12 08:59:48 2016 +0200

    loplugin:loopvartoosmall
    
    Change-Id: Ifa813b91b153004aa0fba42cdc209f4c4fd9578f

diff --git a/basic/source/sbx/sbxarray.cxx b/basic/source/sbx/sbxarray.cxx
index c397506..654004a 100644
--- a/basic/source/sbx/sbxarray.cxx
+++ b/basic/source/sbx/sbxarray.cxx
@@ -507,7 +507,7 @@ bool SbxArray::StoreData( SvStream& rStrm ) const
             nElem++;
     }
     rStrm.WriteUInt16( nElem );
-    for( sal_uInt32 n = 0; n < mpVarEntries->size(); n++ )
+    for( size_t n = 0; n < mpVarEntries->size(); n++ )
     {
         SbxVarEntry& rEntry = (*mpVarEntries)[n];
         if (rEntry.mpVar && !(rEntry.mpVar->GetFlags() & SbxFlagBits::DontStore))


More information about the Libreoffice-commits mailing list