summaryrefslogtreecommitdiff
path: root/package/source/zipapi/ZipOutputStream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'package/source/zipapi/ZipOutputStream.cxx')
-rw-r--r--package/source/zipapi/ZipOutputStream.cxx6
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();