From c99267b326afcfd4002dc5ee33f5076a466c0cab Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 28 Oct 2013 12:30:28 +0100 Subject: Fold SyntaxHighlighter::initialize into ctor ...which reveals that m_pKeyWords, m_nKeyWordCount members are unused. Change-Id: I55020e892d463f2e40d5bcf71efba92778b317c1 --- include/comphelper/syntaxhighlight.hxx | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/comphelper/syntaxhighlight.hxx b/include/comphelper/syntaxhighlight.hxx index 43c42d00f338..8a5782273af3 100644 --- a/include/comphelper/syntaxhighlight.hxx +++ b/include/comphelper/syntaxhighlight.hxx @@ -21,6 +21,7 @@ #include +#include #include #include @@ -70,24 +71,16 @@ enum HighlighterLanguage // (notifyChange) and returns the caller the range of lines, which based on the // changes, need to be highlighted again. For this the Highlighter marks all // lines internally whether or not C comments begin or end. -class COMPHELPER_DLLPUBLIC SyntaxHighlighter +class COMPHELPER_DLLPUBLIC SyntaxHighlighter: private boost::noncopyable { class Tokenizer; HighlighterLanguage eLanguage; boost::scoped_ptr m_tokenizer; - char* m_pKeyWords; - sal_uInt16 m_nKeyWordCount; - -// void initializeKeyWords( HighlighterLanguage eLanguage ); public: - SyntaxHighlighter( void ); - ~SyntaxHighlighter( void ); - - // (Re-)initialize Highlighter. The line-table will be completely erased, - // meaning that on completion an empty Source is assumed. - void initialize( HighlighterLanguage eLanguage_ ); + SyntaxHighlighter(HighlighterLanguage language); + ~SyntaxHighlighter(); void notifyChange(const OUString* pChangedLines, sal_uInt32 nArrayLength); -- cgit