From e4cfb287a2b9f8a283f5347a262efd95c88014d1 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 3 May 2013 13:50:45 +1000 Subject: Moved allocation of data owned by Action into Action::Create. Made more variables const. --- src/CellBuffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/CellBuffer.h') diff --git a/src/CellBuffer.h b/src/CellBuffer.h index cde6f5a1a..6fe698e13 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -80,7 +80,7 @@ public: Action(); ~Action(); - void Create(actionType at_, int position_=0, char *data_=0, int lenData_=0, bool mayCoalesce_=true); + void Create(actionType at_, int position_=0, const char *data_=0, int lenData_=0, bool mayCoalesce_=true); void Destroy(); void Grab(Action *source); }; @@ -105,7 +105,7 @@ public: UndoHistory(); ~UndoHistory(); - void AppendAction(actionType at, int position, char *data, int length, bool &startSequence, bool mayCoalesce=true); + void AppendAction(actionType at, int position, const char *data, int length, bool &startSequence, bool mayCoalesce=true); void BeginUndoAction(); void EndUndoAction(); -- cgit v1.2.3