Kaydet (Commit) a2f9c446 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Some clean-up

Change-Id: I8ef80b7ae952428a62cc1cea8b03219b77a83e99
üst 176ac1e6
......@@ -257,7 +257,6 @@ namespace
class SyntaxHighlighter::Tokenizer
{
HighlighterLanguage aLanguage;
// Character information tables
sal_uInt16 aCharTypeTab[256];
......@@ -272,7 +271,9 @@ class SyntaxHighlighter::Tokenizer
sal_uInt16 nKeyWordCount;
public:
Tokenizer( HighlighterLanguage aLang = HIGHLIGHT_BASIC );
HighlighterLanguage const aLanguage;
Tokenizer( HighlighterLanguage aLang );
~Tokenizer( void );
void getHighlightPortions( const OUString& rLine,
......@@ -710,4 +711,9 @@ void SyntaxHighlighter::getHighlightPortions( const OUString& rLine,
m_tokenizer->getHighlightPortions( rLine, portions );
}
HighlighterLanguage SyntaxHighlighter::GetLanguage()
{
return m_tokenizer->aLanguage;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -80,8 +80,9 @@ public:
void getHighlightPortions( const OUString& rLine,
std::vector<HighlightPortion>& pPortions );
HighlighterLanguage GetLanguage() { return eLanguage;}
HighlighterLanguage GetLanguage();
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment