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/Editor.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index 4e5e56f5b..9ddb753e6 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -257,7 +257,7 @@ protected: // ScintillaBase subclass needs access to much of Editor bool convertPastes; Editor(); - // Deleted so Editor objects can not be copied + // Deleted so Editor objects can not be copied. explicit Editor(const Editor &) = delete; Editor &operator=(const Editor &) = delete; ~Editor() override; @@ -624,6 +624,9 @@ public: } } } + // Deleted so AutoSurface objects can not be copied. + AutoSurface(const AutoSurface &) = delete; + void operator=(const AutoSurface &) = delete; ~AutoSurface() { delete surf; } -- cgit v1.2.3