From cf3c77c09d71cd4b1ebf8e7fe05a9485d182387e Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 19 Jul 2020 19:58:28 -0400 Subject: Backport: Add constexpr, const, noexcept and make other small improvements to lexlib. Backport of changeset 8416:06a43e06a8e0. --- 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 e84f001f7..d8c17d794 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