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/zipapi/ZipOutputStream.cxx | |
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/zipapi/ZipOutputStream.cxx')
-rw-r--r-- | package/source/zipapi/ZipOutputStream.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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(); |