diff options
author | Neil <nyamatongwe@gmail.com> | 2025-05-03 10:31:42 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-05-03 10:31:42 +1000 |
commit | f853a1db0e9bf7afa93e806fd5df7ae35a624b9a (patch) | |
tree | 6a3a96bb3771f75b269cd8ea3152f0cb89178b65 /src/Editor.h | |
parent | 0355d3ca4a6c9c075e933757deda4e423b873b5c (diff) | |
download | scintilla-mirror-f853a1db0e9bf7afa93e806fd5df7ae35a624b9a.tar.gz |
Use noexcept, emplace_back, avoid a cast, and simplify code.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.h b/src/Editor.h index ff940bc49..46879cdc4 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -346,7 +346,7 @@ protected: // ScintillaBase subclass needs access to much of Editor void ThinRectangularRange(); void InvalidateSelection(SelectionRange newMain, bool invalidateWholeSelection=false); void InvalidateWholeSelection(); - SelectionRange LineSelectionRange(SelectionPosition currentPos_, SelectionPosition anchor_) const; + SelectionRange LineSelectionRange(SelectionPosition currentPos_, SelectionPosition anchor_) const noexcept; void SetSelection(SelectionPosition currentPos_, SelectionPosition anchor_); void SetSelection(Sci::Position currentPos_, Sci::Position anchor_); void SetSelection(SelectionPosition currentPos_); @@ -593,7 +593,7 @@ protected: // ScintillaBase subclass needs access to much of Editor void SetFoldExpanded(Sci::Line lineDoc, bool expanded); void FoldLine(Sci::Line line, Scintilla::FoldAction action); void FoldExpand(Sci::Line line, Scintilla::FoldAction action, Scintilla::FoldLevel level); - Sci::Line ContractedFoldNext(Sci::Line lineStart) const; + Sci::Line ContractedFoldNext(Sci::Line lineStart) const noexcept; void EnsureLineVisible(Sci::Line lineDoc, bool enforcePolicy); void FoldChanged(Sci::Line line, Scintilla::FoldLevel levelNow, Scintilla::FoldLevel levelPrev); void NeedShown(Sci::Position pos, Sci::Position len); |