diff options
author | Neil <nyamatongwe@gmail.com> | 2024-01-27 20:08:50 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2024-01-27 20:08:50 +1100 |
commit | 5f1a05f6570e56990092480d2ba0c99c0c48e0fa (patch) | |
tree | e72f22b087b485662e9d5c84cccc7520dd181e84 /src/CellBuffer.h | |
parent | 7e32149ab735019ad029c0559b99998b2d525053 (diff) | |
download | scintilla-mirror-5f1a05f6570e56990092480d2ba0c99c0c48e0fa.tar.gz |
Use noexcept where reasonable.
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r-- | src/CellBuffer.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h index b46b582c1..701472f4f 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -65,7 +65,7 @@ public: void BeginUndoAction(); void EndUndoAction(); - void DropUndoSequence(); + void DropUndoSequence() noexcept; void DeleteUndoHistory(); /// The save point is a marker in the undo stack where the container has stated that @@ -78,21 +78,21 @@ public: bool AfterDetachPoint() const noexcept; // Tentative actions are used for input composition so that it can be undone cleanly - void TentativeStart(); - void TentativeCommit(); + void TentativeStart() noexcept; + void TentativeCommit() noexcept; bool TentativeActive() const noexcept; int TentativeSteps() noexcept; /// To perform an undo, StartUndo is called to retrieve the number of steps, then UndoStep is /// called that many times. Similarly for redo. bool CanUndo() const noexcept; - int StartUndo(); - const Action &GetUndoStep() const; - void CompletedUndoStep(); + int StartUndo() noexcept; + const Action &GetUndoStep() const noexcept; + void CompletedUndoStep() noexcept; bool CanRedo() const noexcept; - int StartRedo(); - const Action &GetRedoStep() const; - void CompletedRedoStep(); + int StartRedo() noexcept; + const Action &GetRedoStep() const noexcept; + void CompletedRedoStep() noexcept; }; struct SplitView { @@ -211,12 +211,12 @@ public: void SetSavePoint(); bool IsSavePoint() const noexcept; - void TentativeStart(); - void TentativeCommit(); + void TentativeStart() noexcept; + void TentativeCommit() noexcept; bool TentativeActive() const noexcept; int TentativeSteps() noexcept; - bool SetUndoCollection(bool collectUndo); + bool SetUndoCollection(bool collectUndo) noexcept; bool IsCollectingUndo() const noexcept; void BeginUndoAction(); void EndUndoAction(); @@ -226,12 +226,12 @@ public: /// To perform an undo, StartUndo is called to retrieve the number of steps, then UndoStep is /// called that many times. Similarly for redo. bool CanUndo() const noexcept; - int StartUndo(); - const Action &GetUndoStep() const; + int StartUndo() noexcept; + const Action &GetUndoStep() const noexcept; void PerformUndoStep(); bool CanRedo() const noexcept; - int StartRedo(); - const Action &GetRedoStep() const; + int StartRedo() noexcept; + const Action &GetRedoStep() const noexcept; void PerformRedoStep(); void ChangeHistorySet(bool set); |