From 06220b1501744c5cebc861e6e6e06449814b1d60 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 28 Apr 2018 10:31:25 +1000 Subject: Backport: Delete standard functions on classes where there could be attempts to copy. Backport of changeset 6756:29866b0927e0. --- src/EditView.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/EditView.h') diff --git a/src/EditView.h b/src/EditView.h index 37d0423bb..ac42f072b 100644 --- a/src/EditView.h +++ b/src/EditView.h @@ -92,7 +92,9 @@ public: EditView(); // Deleted so EditView objects can not be copied. EditView(const EditView &) = delete; + EditView(EditView &&) = delete; void operator=(const EditView &) = delete; + void operator=(EditView &&) = delete; virtual ~EditView(); bool SetTwoPhaseDraw(bool twoPhaseDraw); @@ -159,8 +161,10 @@ class AutoLineLayout { LineLayout *ll; public: AutoLineLayout(LineLayoutCache &llc_, LineLayout *ll_) : llc(llc_), ll(ll_) {} - explicit AutoLineLayout(const AutoLineLayout &) = delete; + AutoLineLayout(const AutoLineLayout &) = delete; + AutoLineLayout(AutoLineLayout &&) = delete; AutoLineLayout &operator=(const AutoLineLayout &) = delete; + AutoLineLayout &operator=(AutoLineLayout &&) = delete; ~AutoLineLayout() { llc.Dispose(ll); ll = 0; -- cgit v1.2.3