diff options
| author | mitchell <unknown> | 2020-07-19 19:58:28 -0400 |
|---|---|---|
| committer | mitchell <unknown> | 2020-07-19 19:58:28 -0400 |
| commit | cf3c77c09d71cd4b1ebf8e7fe05a9485d182387e (patch) | |
| tree | 1e0ff0b323889d275fea6c1c79258fc4a2a39942 /lexlib/StyleContext.h | |
| parent | 834c5671ca91a6fa80c945fa2fe0d750b6cc7dff (diff) | |
| download | scintilla-mirror-cf3c77c09d71cd4b1ebf8e7fe05a9485d182387e.tar.gz | |
Backport: Add constexpr, const, noexcept and make other small improvements to lexlib.
Backport of changeset 8416:06a43e06a8e0.
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 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_) { |
