diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-05 10:10:54 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-05 12:44:25 +0000 |
commit | f07ff7ed8a23b4982ed9cd7d9e2083c9d0928384 (patch) | |
tree | 636c69f83d25d0bfe540322b24dcbe3779c6b9b7 /package/source | |
parent | 931a72efbc8708fab91e849b39a84e6b7939c7de (diff) |
clang-tidy modernize-loop-convert in oox to sax
Change-Id: If0d87b6679765fc6d1f9300c6972845cf3742b9c
Reviewed-on: https://gerrit.libreoffice.org/24674
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'package/source')
-rw-r--r-- | package/source/manifest/ManifestImport.cxx | 4 | ||||
-rw-r--r-- | package/source/zipapi/ZipOutputStream.cxx | 6 |
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(); |