summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2016-09-06 13:07:30 +0200
committerDavid Tardon <dtardon@redhat.com>2016-09-06 14:38:06 +0200
commit7571242f793200379bf90f605f21225e03df85fe (patch)
treef015ac0f129c61914071684f0fdb74f321fa3fa6 /xmloff
parent7e4d1521058916cf0facdba91f5b0ae1e95d318a (diff)
rewrite using a for loop
Change-Id: Ia58651d011064e4d324e5e7851b681f4d13d41a7
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlimp.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index ec0bb369c8cf..e02424f88519 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -455,10 +455,8 @@ SvXMLImport::~SvXMLImport() throw ()
delete mpNamespaceMap;
delete mpUnitConv;
delete mpEventImportHelper;
- while( !maContexts.empty() )
+ for ( SvXMLImportContext *pContext : maContexts )
{
- SvXMLImportContext *pContext = maContexts.back();
- maContexts.pop_back();
if( pContext )
pContext->ReleaseRef();
}