aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-19 17:44:09 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-19 17:44:09 +1000
commitd9a4e803d7b5e9fde3009052653ec3fdf77c5c09 (patch)
tree45858426901e942a5f1cd8b1f4a5805902e125c0 /src/CellBuffer.h
parentc085f3f8458110eca0874343b45b34acc9827631 (diff)
downloadscintilla-mirror-d9a4e803d7b5e9fde3009052653ec3fdf77c5c09.tar.gz
Use =delete for unwanted functions.
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r--src/CellBuffer.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h
index f0b77e162..c073d5e5e 100644
--- a/src/CellBuffer.h
+++ b/src/CellBuffer.h
@@ -83,11 +83,10 @@ class UndoHistory {
void EnsureUndoRoom();
- // Private so UndoHistory objects can not be copied
- UndoHistory(const UndoHistory &);
-
public:
UndoHistory();
+ // Deleted so UndoHistory objects can not be copied
+ UndoHistory(const UndoHistory &) = delete;
~UndoHistory();
const char *AppendAction(actionType at, Sci::Position position, const char *data, Sci::Position lengthData, bool &startSequence, bool mayCoalesce=true);