diff options
author | nyamatongwe <devnull@localhost> | 2013-05-03 13:50:45 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-05-03 13:50:45 +1000 |
commit | 9f15e5c80d736bf2e5cd15f63295cd0ed82284e2 (patch) | |
tree | 7d161ea9ebff26cbb6a5fb42b86b1955369348af /src/CellBuffer.h | |
parent | 42ef5cfc1cae639a17da2eaea805e71bf851d063 (diff) | |
download | scintilla-mirror-9f15e5c80d736bf2e5cd15f63295cd0ed82284e2.tar.gz |
Moved allocation of data owned by Action into Action::Create.
Made more variables const.
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r-- | src/CellBuffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |