diff options
author | Neil <nyamatongwe@gmail.com> | 2017-04-29 11:52:49 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-04-29 11:52:49 +1000 |
commit | 102a874a3a8ca376e08d1319b36833297bea39ae (patch) | |
tree | 1ca446e24494a212cce099f3f6b479109025c94f /src/Document.cxx | |
parent | 1cc39b2c7bc22ae8aaddefd382c621474732b8c1 (diff) | |
download | scintilla-mirror-102a874a3a8ca376e08d1319b36833297bea39ae.tar.gz |
Use std::unique_ptr, std::vector, and move construction to simplify UndoHistory
and make it easier to modify.
Remove out of date warning suppression.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 581358e52..4b0bd79e2 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -261,7 +261,7 @@ void Document::TentativeUndo() { modFlags |= SC_MULTILINEUNDOREDO; } NotifyModified(DocModification(modFlags, action.position, action.lenData, - linesAdded, action.data)); + linesAdded, action.data.get())); } bool endSavePoint = cb.IsSavePoint(); @@ -1208,7 +1208,7 @@ Sci::Position Document::Undo() { modFlags |= SC_MULTILINEUNDOREDO; } NotifyModified(DocModification(modFlags, action.position, action.lenData, - linesAdded, action.data)); + linesAdded, action.data.get())); } bool endSavePoint = cb.IsSavePoint(); @@ -1268,7 +1268,7 @@ Sci::Position Document::Redo() { } NotifyModified( DocModification(modFlags, action.position, action.lenData, - linesAdded, action.data)); + linesAdded, action.data.get())); } bool endSavePoint = cb.IsSavePoint(); |