summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-24 11:47:30 +0200
committerNoel Grandin <noel@peralex.com>2016-02-24 11:48:39 +0200
commitf163745cca6627fd8de0a089a8c30b3c6e17193f (patch)
tree30ff0edc1772cad1a96dd6bf3c02a6a8e34dd8f0 /include
parenta5e53f9ffdde320a7ba104a1e01b3f5ef75d7975 (diff)
convert HighlighterLanguage to scoped enum
Change-Id: Ibf0871601e52ea4fa49e9622176431943c55abdd
Diffstat (limited to 'include')
-rw-r--r--include/comphelper/syntaxhighlight.hxx6
-rw-r--r--include/svtools/editsyntaxhighlighter.hxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/comphelper/syntaxhighlight.hxx b/include/comphelper/syntaxhighlight.hxx
index cfe8896c982c..76e87124bdc8 100644
--- a/include/comphelper/syntaxhighlight.hxx
+++ b/include/comphelper/syntaxhighlight.hxx
@@ -59,10 +59,10 @@ struct HighlightPortion {
// Language mode of the Highlighter (possibly to be refined later with keyword
// lists, C comment flags)
-enum HighlighterLanguage
+enum class HighlighterLanguage
{
- HIGHLIGHT_BASIC,
- HIGHLIGHT_SQL
+ Basic,
+ SQL
};
class COMPHELPER_DLLPUBLIC SyntaxHighlighter
diff --git a/include/svtools/editsyntaxhighlighter.hxx b/include/svtools/editsyntaxhighlighter.hxx
index d205e3222145..33666a7ded0f 100644
--- a/include/svtools/editsyntaxhighlighter.hxx
+++ b/include/svtools/editsyntaxhighlighter.hxx
@@ -39,7 +39,7 @@ class SVT_DLLPUBLIC MultiLineEditSyntaxHighlight : public MultiLineEdit
virtual bool PreNotify( NotifyEvent& rNEvt ) override;
public:
- MultiLineEditSyntaxHighlight( vcl::Window* pParent, WinBits nWinStyle = WB_LEFT | WB_BORDER , HighlighterLanguage aLanguage = HIGHLIGHT_SQL);
+ MultiLineEditSyntaxHighlight( vcl::Window* pParent, WinBits nWinStyle = WB_LEFT | WB_BORDER , HighlighterLanguage aLanguage = HighlighterLanguage::SQL);
virtual void UpdateData() override;
virtual void SetText(const OUString& rNewText) override;