summaryrefslogtreecommitdiff
path: root/helpcompiler/inc/BasCodeTagger.hxx
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/inc/BasCodeTagger.hxx
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/inc/BasCodeTagger.hxx')
-rw-r--r--helpcompiler/inc/BasCodeTagger.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/helpcompiler/inc/BasCodeTagger.hxx b/helpcompiler/inc/BasCodeTagger.hxx
index d8dbffa4cd49..7d485b166805 100644
--- a/helpcompiler/inc/BasCodeTagger.hxx
+++ b/helpcompiler/inc/BasCodeTagger.hxx
@@ -13,7 +13,8 @@
#include <iostream>
#include <cstdlib>
#include <string>
-#include <list>
+#include <deque>
+#include <vector>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
#include <rtl/ustring.hxx>
@@ -28,7 +29,7 @@ class L10N_DLLPUBLIC BasicCodeTagger
{
private:
xmlDocPtr m_pDocument;
- std::list<xmlNodePtr> m_BasicCodeContainerTags;
+ std::vector<xmlNodePtr> m_BasicCodeContainerTags;
LibXmlTreeWalker *m_pXmlTreeWalker;
SyntaxHighlighter m_Highlighter;
bool m_bTaggingCompleted;
@@ -50,7 +51,7 @@ class L10N_DLLPUBLIC LibXmlTreeWalker
{
private:
xmlNodePtr m_pCurrentNode;
- std::list<xmlNodePtr> m_Queue; //!Queue for breath-first search
+ std::deque<xmlNodePtr> m_Queue; //!Queue for breath-first search
public:
LibXmlTreeWalker( xmlDocPtr doc );