summaryrefslogtreecommitdiff
path: root/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter/source/ooxml/OOXMLFastContextHandler.cxx')
-rw-r--r--writerfilter/source/ooxml/OOXMLFastContextHandler.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
index 5865846cd260..81ac2717b4a8 100644
--- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
+++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
@@ -2256,14 +2256,13 @@ OOXMLFastContextHandlerWrapper::lcl_createFastChildContext
debug_logger->startElement("Wrapper-createChildContext");
debug_logger->attribute("token", fastTokenToId(Element));
- set<Id>::const_iterator aIt(mMyNamespaces.begin());
- while (aIt != mMyNamespaces.end())
+ const set<Id>::const_iterator aEnd(mMyNamespaces.end());
+ for (set<Id>::const_iterator aIt(mMyNamespaces.begin());
+ aIt != aEnd; ++aIt)
{
debug_logger->startElement("namespace");
debug_logger->attribute("id", fastTokenToId(*aIt));
debug_logger->endElement();
-
- aIt++;
}
debug_logger->endElement();