aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-11-19 08:57:36 +1100
committerNeil <nyamatongwe@gmail.com>2023-11-19 08:57:36 +1100
commit236dae2dd176c2d48471ad5dc3f96c1c3f7584c0 (patch)
tree6cbfbc33e02952d87e1b04021a3f72f444b1224c /src
parent12da4cfbd4a6edfdc7a4ad129bb8c9975059d254 (diff)
downloadscintilla-mirror-236dae2dd176c2d48471ad5dc3f96c1c3f7584c0.tar.gz
Add const where possible.
Diffstat (limited to 'src')
-rw-r--r--src/CellBuffer.cxx2
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