diff options
author | Neil <nyamatongwe@gmail.com> | 2023-11-19 08:57:36 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2023-11-19 08:57:36 +1100 |
commit | 236dae2dd176c2d48471ad5dc3f96c1c3f7584c0 (patch) | |
tree | 6cbfbc33e02952d87e1b04021a3f72f444b1224c /src/CellBuffer.cxx | |
parent | 12da4cfbd4a6edfdc7a4ad129bb8c9975059d254 (diff) | |
download | scintilla-mirror-236dae2dd176c2d48471ad5dc3f96c1c3f7584c0.tar.gz |
Add const where possible.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index c90e5a337..3c11939f4 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -405,7 +405,7 @@ const char *UndoHistory::AppendAction(ActionType at, Sci::Position position, con } else if (detach && (*detach > currentAction)) { detach = currentAction; } - int oldCurrentAction = currentAction; + const int oldCurrentAction = currentAction; if (currentAction >= 1) { if (0 == undoSequenceDepth) { // Top level actions may not always be coalesced |