summaryrefslogtreecommitdiff
path: root/helpcompiler/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-11-26 16:41:00 +0100
committerJulien Nabet <serval2412@yahoo.fr>2017-11-26 18:02:05 +0100
commitd8282c9adcd1c10b721bb72d6e4c8f993e862694 (patch)
treeaad48320d5991c783ff4690ce926705ad140e051 /helpcompiler/source
parentae3a10fc86620250363724d5634c09a9f61f91be (diff)
Replace lists by vector and deque (helpcompiler)
Change-Id: I8d65947f3188ab7b54653eee887de2c5d4f8095d Reviewed-on: https://gerrit.libreoffice.org/45290 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'helpcompiler/source')
-rw-r--r--helpcompiler/source/BasCodeTagger.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/helpcompiler/source/BasCodeTagger.cxx b/helpcompiler/source/BasCodeTagger.cxx
index 20a4f1bb8061..215ea49996f6 100644
--- a/helpcompiler/source/BasCodeTagger.cxx
+++ b/helpcompiler/source/BasCodeTagger.cxx
@@ -103,19 +103,17 @@ void BasicCodeTagger::getBasicCodeContainerNodes()
void BasicCodeTagger::tagBasCodeParagraphs()
{
//helper variables
- xmlNodePtr currBascodeNode;
xmlNodePtr currParagraph;
- while ( !m_BasicCodeContainerTags.empty() )
+ for (auto const& currBascodeNode : m_BasicCodeContainerTags)
{
- currBascodeNode = m_BasicCodeContainerTags.front();
currParagraph = currBascodeNode->xmlChildrenNode; //first <paragraph>
while ( currParagraph != nullptr )
{
tagParagraph( currParagraph );
currParagraph=currParagraph->next;
}
- m_BasicCodeContainerTags.pop_front(); //next element
}
+ m_BasicCodeContainerTags.clear();
}
//! Used by tagBasCodeParagraphs(). It does the work on the current paragraph containing Basic code.