From 9472b43539e7b4a6a3f5e657b0ec06e9e6e5eab9 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 28 Apr 2018 10:31:25 +1000 Subject: Delete standard functions on classes where there could be attempts to copy. --- src/CellBuffer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/CellBuffer.h') diff --git a/src/CellBuffer.h b/src/CellBuffer.h index 3e3ec3015..a98d9abcb 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -66,7 +66,9 @@ public: UndoHistory(); // Deleted so UndoHistory objects can not be copied. UndoHistory(const UndoHistory &) = delete; + UndoHistory(UndoHistory &&) = delete; void operator=(const UndoHistory &) = delete; + void operator=(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