diff options
Diffstat (limited to 'helpcompiler/inc/BasCodeTagger.hxx')
-rw-r--r-- | helpcompiler/inc/BasCodeTagger.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helpcompiler/inc/BasCodeTagger.hxx b/helpcompiler/inc/BasCodeTagger.hxx index 7d485b166805..228f86fd6a18 100644 --- a/helpcompiler/inc/BasCodeTagger.hxx +++ b/helpcompiler/inc/BasCodeTagger.hxx @@ -14,6 +14,7 @@ #include <cstdlib> #include <string> #include <deque> +#include <memory> #include <vector> #include <libxml/xmlmemory.h> #include <libxml/parser.h> @@ -30,7 +31,7 @@ class L10N_DLLPUBLIC BasicCodeTagger private: xmlDocPtr m_pDocument; std::vector<xmlNodePtr> m_BasicCodeContainerTags; - LibXmlTreeWalker *m_pXmlTreeWalker; + std::unique_ptr<LibXmlTreeWalker> m_pXmlTreeWalker; SyntaxHighlighter m_Highlighter; bool m_bTaggingCompleted; void tagParagraph( xmlNodePtr paragraph ); |