diff options
author | Neil <nyamatongwe@gmail.com> | 2018-02-27 16:11:30 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-02-27 16:11:30 +1100 |
commit | 1ba68d0a15f6412fa581845048c5013aee93558a (patch) | |
tree | 7f2df1784788d877d5cc3992fc4012b1e86e8bc8 | |
parent | 82aeb241248289a06a664d93cd2745f592ddfd98 (diff) | |
download | scintilla-mirror-1ba68d0a15f6412fa581845048c5013aee93558a.tar.gz |
Use virtual to ensure LexState overrides LineEndTypesSupported method.
-rw-r--r-- | src/Document.h | 2 | ||||
-rw-r--r-- | src/ScintillaBase.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Document.h b/src/Document.h index bd956ccbf..36e8ff2ac 100644 --- a/src/Document.h +++ b/src/Document.h @@ -181,7 +181,7 @@ public: virtual ~LexInterface() { } void Colourise(Sci::Position start, Sci::Position end); - int LineEndTypesSupported(); + virtual int LineEndTypesSupported(); bool UseContainerLexing() const { return instance == 0; } diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 7c2e0eb8d..8f9da7fa6 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -569,7 +569,7 @@ public: int PropGetInt(const char *key, int defaultValue=0) const; int PropGetExpanded(const char *key, char *result) const; - int LineEndTypesSupported(); + int LineEndTypesSupported() override; int AllocateSubStyles(int styleBase, int numberStyles); int SubStylesStart(int styleBase); int SubStylesLength(int styleBase); |