aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-21 09:30:16 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-21 09:30:16 +1000
commit261277783fa16e0c974b1981a5eb0a208fca955e (patch)
treef9a75c9fd718ef57994b775e6d653983e5634085 /src/Editor.h
parentcd65e0b6478f38b809dd08805e7795a9d8b669eb (diff)
downloadscintilla-mirror-261277783fa16e0c974b1981a5eb0a208fca955e.tar.gz
More consistent deletion of standard methods.
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h5
1 files changed, 4 insertions, 1 deletions
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;
}