From b3c9933350e5c6b9d06a72034e681cecae52dc4b Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 16 Jul 2020 19:55:15 +1000 Subject: Add constexpr, const, noexcept and make other small improvements to lexlib. --- lexlib/StyleContext.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lexlib/StyleContext.h') 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_) { -- cgit v1.2.3