diff options
author | Neil <nyamatongwe@gmail.com> | 2019-07-01 09:44:16 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-07-01 09:44:16 +1000 |
commit | 66f7db2527db8d4ca247dd8e086e2991feb10a91 (patch) | |
tree | b2e0d644fbc220fce4694114651e198bb64efd8e | |
parent | cef4f7e4feb91ff9d4ba1d9ee411a86bd2af6a16 (diff) | |
download | scintilla-mirror-66f7db2527db8d4ca247dd8e086e2991feb10a91.tar.gz |
Backport: Use noexcept in HighlightDelimiter - its a simple struct.
Backport of changeset 7615:216fdb644bfa.
-rw-r--r-- | src/Document.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Document.h b/src/Document.h index f662dc993..4e376a75b 100644 --- a/src/Document.h +++ b/src/Document.h @@ -137,23 +137,23 @@ public: firstChangeableLineAfter = -1; } - bool NeedsDrawing(Sci::Line line) const { + bool NeedsDrawing(Sci::Line line) const noexcept { return isEnabled && (line <= firstChangeableLineBefore || line >= firstChangeableLineAfter); } - bool IsFoldBlockHighlighted(Sci::Line line) const { + bool IsFoldBlockHighlighted(Sci::Line line) const noexcept { return isEnabled && beginFoldBlock != -1 && beginFoldBlock <= line && line <= endFoldBlock; } - bool IsHeadOfFoldBlock(Sci::Line line) const { + bool IsHeadOfFoldBlock(Sci::Line line) const noexcept { return beginFoldBlock == line && line < endFoldBlock; } - bool IsBodyOfFoldBlock(Sci::Line line) const { + bool IsBodyOfFoldBlock(Sci::Line line) const noexcept { return beginFoldBlock != -1 && beginFoldBlock < line && line < endFoldBlock; } - bool IsTailOfFoldBlock(Sci::Line line) const { + bool IsTailOfFoldBlock(Sci::Line line) const noexcept { return beginFoldBlock != -1 && beginFoldBlock < line && line == endFoldBlock; } |