From cd65e0b6478f38b809dd08805e7795a9d8b669eb Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 20 Apr 2017 16:10:17 +1000 Subject: More consistent deletion of standard methods. --- src/EditView.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/EditView.h') diff --git a/src/EditView.h b/src/EditView.h index 9eb3146dd..d884019d4 100644 --- a/src/EditView.h +++ b/src/EditView.h @@ -154,9 +154,10 @@ public: class AutoLineLayout { LineLayoutCache &llc; LineLayout *ll; - AutoLineLayout &operator=(const AutoLineLayout &); public: AutoLineLayout(LineLayoutCache &llc_, LineLayout *ll_) : llc(llc_), ll(ll_) {} + explicit AutoLineLayout(const AutoLineLayout &) = delete; + AutoLineLayout &operator=(const AutoLineLayout &) = delete; ~AutoLineLayout() { llc.Dispose(ll); ll = 0; -- cgit v1.2.3