summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/source/manifest/ManifestImport.cxx4
-rw-r--r--package/source/zipapi/ZipOutputStream.cxx6
2 files changed, 5 insertions, 5 deletions
diff --git a/package/source/manifest/ManifestImport.cxx b/package/source/manifest/ManifestImport.cxx
index 7cc28660d783..69d5a33a8873 100644
--- a/package/source/manifest/ManifestImport.cxx
+++ b/package/source/manifest/ManifestImport.cxx
@@ -374,9 +374,9 @@ OUString ManifestImport::PushNameAndNamespaces( const OUString& aName, const uno
aStack.push_back( ManifestScopeEntry( aConvertedName, aNamespaces ) );
- for ( size_t nInd = 0; nInd < aAttribsStrs.size(); nInd++ ) {
+ for (const std::pair<OUString,OUString> & rAttribsStr : aAttribsStrs) {
// convert the attribute names on filling
- o_aConvertedAttribs[ConvertName( aAttribsStrs[nInd].first )] = aAttribsStrs[nInd].second;
+ o_aConvertedAttribs[ConvertName( rAttribsStr.first )] = rAttribsStr.second;
}
return aConvertedName;
diff --git a/package/source/zipapi/ZipOutputStream.cxx b/package/source/zipapi/ZipOutputStream.cxx
index c5307cea1c10..9213ed7c586b 100644
--- a/package/source/zipapi/ZipOutputStream.cxx
+++ b/package/source/zipapi/ZipOutputStream.cxx
@@ -179,10 +179,10 @@ void ZipOutputStream::finish()
consumeAllScheduledThreadEntries();
sal_Int32 nOffset= static_cast < sal_Int32 > (m_aChucker.GetPosition());
- for (size_t i = 0; i < m_aZipList.size(); i++)
+ for (ZipEntry* p : m_aZipList)
{
- writeCEN( *m_aZipList[i] );
- delete m_aZipList[i];
+ writeCEN( *p );
+ delete p;
}
writeEND( nOffset, static_cast < sal_Int32 > (m_aChucker.GetPosition()) - nOffset);
m_xStream->flush();