From 55bc128636596032c23ee855904822ad813986fc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 29 May 2015 09:59:20 +0200 Subject: loplugin:loopvartoosmall Change-Id: I86ff38a90018a2ddfb2db3babf67168b0e6257a5 --- package/source/zippackage/ZipPackageStream.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/source/zippackage/ZipPackageStream.cxx') diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx index c94cba62c544..a0fa26b6e66f 100644 --- a/package/source/zippackage/ZipPackageStream.cxx +++ b/package/source/zippackage/ZipPackageStream.cxx @@ -1229,7 +1229,7 @@ void SAL_CALL ZipPackageStream::setPropertyValue( const OUString& aPropertyName, Sequence < sal_Int8 > aSequence ( nPathLength ); sal_Int8 *pArray = aSequence.getArray(); const sal_Unicode *pChar = sTempString.getStr(); - for ( sal_Int16 i = 0; i < nPathLength; i++ ) + for ( sal_Int32 i = 0; i < nPathLength; i++ ) pArray[i] = static_cast < const sal_Int8 > ( pChar[i] ); aNewKey = aSequence; } -- cgit v1.2.3