aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/EditView.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/EditView.h')
-rw-r--r--src/EditView.h3
1 files changed, 2 insertions, 1 deletions
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;