diff options
Diffstat (limited to 'src/StyleContext.h')
| -rw-r--r-- | src/StyleContext.h | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/StyleContext.h b/src/StyleContext.h index a2e058a70..4e175bc29 100644 --- a/src/StyleContext.h +++ b/src/StyleContext.h @@ -65,7 +65,7 @@ public:  	void Complete() {  		styler.ColourTo(currentPos - 1, state);  	} -	bool More() { +	bool More() const {  		return currentPos < endPos;  	}  	void Forward() { @@ -108,10 +108,10 @@ public:  	int GetRelative(int n) {  		return static_cast<unsigned char>(styler.SafeGetCharAt(currentPos+n));  	} -	bool Match(char ch0) { +	bool Match(char ch0) const {  		return ch == static_cast<unsigned char>(ch0);  	} -	bool Match(char ch0, char ch1) { +	bool Match(char ch0, char ch1) const {  		return (ch == static_cast<unsigned char>(ch0)) && (chNext == static_cast<unsigned char>(ch1));  	}  	bool Match(const char *s) { | 
