aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-05-24 00:04:54 +1000
committernyamatongwe <devnull@localhost>2013-05-24 00:04:54 +1000
commit44da106995e3b3ca4068f584c16f59d8fced4e69 (patch)
tree72512a72ac08ef47a2f40d9b30b0f208a245fda0 /src/CellBuffer.h
parent2345e207b44f01e09d8dba69a37b9a67eeefa884 (diff)
downloadscintilla-mirror-44da106995e3b3ca4068f584c16f59d8fced4e69.tar.gz
Made methods const where they can be and are logically const as well.
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r--src/CellBuffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h
index 6fe698e13..45613bfa0 100644
--- a/src/CellBuffer.h
+++ b/src/CellBuffer.h
@@ -191,7 +191,7 @@ public:
/// The save point is a marker in the undo stack where the container has stated that
/// the buffer was saved. Undo and redo can move over the save point.
void SetSavePoint();
- bool IsSavePoint();
+ bool IsSavePoint() const;
bool SetUndoCollection(bool collectUndo);
bool IsCollectingUndo() const;
@@ -202,11 +202,11 @@ 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();
+ bool CanUndo() const;
int StartUndo();
const Action &GetUndoStep() const;
void PerformUndoStep();
- bool CanRedo();
+ bool CanRedo() const;
int StartRedo();
const Action &GetRedoStep() const;
void PerformRedoStep();