[Libreoffice-commits] core.git: comphelper/qa

Stephan Bergmann sbergman at redhat.com
Sun Feb 26 20:59:23 UTC 2017


 comphelper/qa/unit/variadictemplates.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e821f8848f477eb1a58e7e892f34110c6cb51160
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sun Feb 26 21:58:53 2017 +0100

    loplugin:loopvartoosmall
    
    Change-Id: Iedfb57f97a15b17a68a5de8e5efd9ba196864964

diff --git a/comphelper/qa/unit/variadictemplates.cxx b/comphelper/qa/unit/variadictemplates.cxx
index 2a3d0fe..146a429 100644
--- a/comphelper/qa/unit/variadictemplates.cxx
+++ b/comphelper/qa/unit/variadictemplates.cxx
@@ -125,7 +125,7 @@ void VariadicTemplatesTest::testUnwrapArgs() {
         ::com::sun::star::uno::Any* p1 = seq1.getArray();
         ::com::sun::star::uno::Any* p2 = seq2.getArray();
 
-        for( sal_Int16 i = 0; i < seq1.getLength() && i < seq2.getLength(); ++i ) {
+        for( sal_Int32 i = 0; i < seq1.getLength() && i < seq2.getLength(); ++i ) {
             CPPUNIT_ASSERT_EQUAL_MESSAGE( "seq1 and seq2 are equal",
                                     p1[i], p2[i] );
         }


More information about the Libreoffice-commits mailing list