From d9a4e803d7b5e9fde3009052653ec3fdf77c5c09 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 19 Apr 2017 17:44:09 +1000 Subject: Use =delete for unwanted functions. --- src/CellBuffer.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/CellBuffer.h') 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); -- cgit v1.2.3