From 4813d2aa6961aae087cf8c115fd6c88510d40a05 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 19 Jan 2013 14:38:06 +1100 Subject: Add private copy constructors to prevent copying and avoid warnings. --- src/CellBuffer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/CellBuffer.h') diff --git a/src/CellBuffer.h b/src/CellBuffer.h index bfbb121de..cde6f5a1a 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -98,6 +98,9 @@ class UndoHistory { void EnsureUndoRoom(); + // Private so UndoHistory objects can not be copied + UndoHistory(const UndoHistory &); + public: UndoHistory(); ~UndoHistory(); -- cgit v1.2.3