diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-07-16 19:55:15 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-07-16 19:55:15 +1000 | 
| commit | b3c9933350e5c6b9d06a72034e681cecae52dc4b (patch) | |
| tree | a733fba3b608ba75f4c55ec27cc6026697fdd3b0 /lexlib/StyleContext.h | |
| parent | 08b502cac1f88bc511c324ab7eb23d34c4318bd7 (diff) | |
| download | scintilla-mirror-b3c9933350e5c6b9d06a72034e681cecae52dc4b.tar.gz | |
Add constexpr, const, noexcept and make other small improvements to lexlib.
Diffstat (limited to 'lexlib/StyleContext.h')
| -rw-r--r-- | lexlib/StyleContext.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lexlib/StyleContext.h b/lexlib/StyleContext.h index 6c617a098..c9ff4efbb 100644 --- a/lexlib/StyleContext.h +++ b/lexlib/StyleContext.h @@ -100,7 +100,7 @@ public:  		styler.ColourTo(currentPos - ((currentPos > lengthDocument) ? 2 : 1), state);  		styler.Flush();  	} -	bool More() const { +	bool More() const noexcept {  		return currentPos < endPos;  	}  	void Forward() { @@ -139,7 +139,7 @@ public:  			}  		}  	} -	void ChangeState(int state_) { +	void ChangeState(int state_) noexcept {  		state = state_;  	}  	void SetState(int state_) { | 
