aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2017-07-17 14:53:00 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2017-07-17 14:53:00 +1000
commit862eaefe89d77e1ce8453d7bcac9145fb023b649 (patch)
treefef32e7f3a217d862b988d5da2398ab91e079e50
parent53a6f96afabcb3c307f8955b6f633aa8d5608624 (diff)
downloadscintilla-mirror-862eaefe89d77e1ce8453d7bcac9145fb023b649.tar.gz
Mark overriding methods as "override".
-rw-r--r--lexers/LexCPP.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx
index 15379d454..bf085203e 100644
--- a/lexers/LexCPP.cxx
+++ b/lexers/LexCPP.cxx
@@ -579,12 +579,12 @@ public:
const char * SCI_METHOD GetSubStyleBases() override {
return styleSubable;
}
- int SCI_METHOD NamedStyles() {
+ int SCI_METHOD NamedStyles() override {
return std::max(subStyles.LastAllocated() + 1,
static_cast<int>(ELEMENTS(lexicalClasses))) +
activeFlag;
}
- const char * SCI_METHOD NameOfStyle(int style) {
+ const char * SCI_METHOD NameOfStyle(int style) override {
if (style >= NamedStyles())
return "";
if (style < ELEMENTS(lexicalClasses))
@@ -592,7 +592,7 @@ public:
// TODO: inactive and substyles
return "";
}
- const char * SCI_METHOD TagsOfStyle(int style) {
+ const char * SCI_METHOD TagsOfStyle(int style) override {
if (style >= NamedStyles())
return "Excess";
returnBuffer.clear();
@@ -624,7 +624,7 @@ public:
}
return "";
}
- const char * SCI_METHOD DescriptionOfStyle(int style) {
+ const char * SCI_METHOD DescriptionOfStyle(int style) override {
if (style >= NamedStyles())
return "";
if (style < ELEMENTS(lexicalClasses))