summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-28 12:30:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-10-28 13:48:14 +0100
commitc99267b326afcfd4002dc5ee33f5076a466c0cab (patch)
tree6b160f1ce1c505ede71424f069aca608438a2b6d /include
parent6aa24e7565dfa5feafd12cd0ec12312df044916e (diff)
Fold SyntaxHighlighter::initialize into ctor
...which reveals that m_pKeyWords, m_nKeyWordCount members are unused. Change-Id: I55020e892d463f2e40d5bcf71efba92778b317c1
Diffstat (limited to 'include')
-rw-r--r--include/comphelper/syntaxhighlight.hxx15
1 files changed, 4 insertions, 11 deletions
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 <vector>
+#include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.hpp>
#include <rtl/ustring.hxx>
@@ -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<Tokenizer> 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);