From 44da106995e3b3ca4068f584c16f59d8fced4e69 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 24 May 2013 00:04:54 +1000 Subject: Made methods const where they can be and are logically const as well. --- src/CellBuffer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/CellBuffer.h') 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(); -- cgit v1.2.3