summaryrefslogtreecommitdiff
path: root/sax/source
diff options
context:
space:
mode:
Diffstat (limited to 'sax/source')
-rw-r--r--sax/source/fastparser/fastparser.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 9effb82c348c..beb30443ba02 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -674,11 +674,11 @@ FastSaxParserImpl::~FastSaxParserImpl()
{
if( mxDocumentLocator.is() )
mxDocumentLocator->dispose();
- for ( size_t i = 0; i < m_TemporalEntities.size(); ++i )
+ for (const auto& entity : m_TemporalEntities)
{
- if (!m_TemporalEntities[i])
+ if (!entity)
continue;
- xmlNodePtr pPtr = reinterpret_cast<xmlNodePtr>(m_TemporalEntities[i]);
+ xmlNodePtr pPtr = reinterpret_cast<xmlNodePtr>(entity);
xmlUnlinkNode(pPtr);
xmlFreeNode(pPtr);
}