From 261277783fa16e0c974b1981a5eb0a208fca955e Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 21 Apr 2017 09:30:16 +1000 Subject: More consistent deletion of standard methods. --- src/Document.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index b8a88c0df..b6c9c5bd1 100644 --- a/src/Document.h +++ b/src/Document.h @@ -260,6 +260,9 @@ public: DecorationList decorations; Document(); + // Deleted so Document objects can not be copied. + Document(const Document &) = delete; + void operator=(const Document &) = delete; virtual ~Document(); int AddRef(); -- cgit v1.2.3