diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-29 09:59:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-01 09:58:56 +0200 |
commit | 55bc128636596032c23ee855904822ad813986fc (patch) | |
tree | ba097deaf15579f0148a68679d915e3ba25d52c4 /package | |
parent | c9fd4aa8aa969ef2b669813acee15d6efcf1ecde (diff) |
loplugin:loopvartoosmall
Change-Id: I86ff38a90018a2ddfb2db3babf67168b0e6257a5
Diffstat (limited to 'package')
-rw-r--r-- | package/source/manifest/ManifestImport.cxx | 2 | ||||
-rw-r--r-- | package/source/zippackage/ZipPackageStream.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/package/source/manifest/ManifestImport.cxx b/package/source/manifest/ManifestImport.cxx index 9376ab060721..7c0bbde0501c 100644 --- a/package/source/manifest/ManifestImport.cxx +++ b/package/source/manifest/ManifestImport.cxx @@ -417,7 +417,7 @@ OUString ManifestImport::PushNameAndNamespaces( const OUString& aName, const uno aStack.push_back( ManifestScopeEntry( aConvertedName, aNamespaces ) ); - for ( sal_uInt16 nInd = 0; nInd < aAttribsStrs.size(); nInd++ ) + for ( size_t nInd = 0; nInd < aAttribsStrs.size(); nInd++ ) { // convert the attribute names on filling o_aConvertedAttribs[ConvertName( aAttribsStrs[nInd].first )] = aAttribsStrs[nInd].second; 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; } |