From 1ba68d0a15f6412fa581845048c5013aee93558a Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 27 Feb 2018 16:11:30 +1100 Subject: Use virtual to ensure LexState overrides LineEndTypesSupported method. --- src/Document.h | 2 +- src/ScintillaBase.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3