From 236dae2dd176c2d48471ad5dc3f96c1c3f7584c0 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 19 Nov 2023 08:57:36 +1100 Subject: Add const where possible. --- src/CellBuffer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/CellBuffer.cxx') 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 -- cgit v1.2.3