diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2017-07-17 14:53:00 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2017-07-17 14:53:00 +1000 |
commit | 862eaefe89d77e1ce8453d7bcac9145fb023b649 (patch) | |
tree | fef32e7f3a217d862b988d5da2398ab91e079e50 | |
parent | 53a6f96afabcb3c307f8955b6f633aa8d5608624 (diff) | |
download | scintilla-mirror-862eaefe89d77e1ce8453d7bcac9145fb023b649.tar.gz |
Mark overriding methods as "override".
-rw-r--r-- | lexers/LexCPP.cxx | 8 |
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)) |