aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-19 17:44:09 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-19 17:44:09 +1000
commitd9a4e803d7b5e9fde3009052653ec3fdf77c5c09 (patch)
tree45858426901e942a5f1cd8b1f4a5805902e125c0 /src/Editor.h
parentc085f3f8458110eca0874343b45b34acc9827631 (diff)
downloadscintilla-mirror-d9a4e803d7b5e9fde3009052653ec3fdf77c5c09.tar.gz
Use =delete for unwanted functions.
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Editor.h b/src/Editor.h
index 976d538ab..4e5e56f5b 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -150,10 +150,6 @@ struct WrapPending {
/**
*/
class Editor : public EditModel, public DocWatcher {
- // Private so Editor objects can not be copied
- explicit Editor(const Editor &);
- Editor &operator=(const Editor &);
-
protected: // ScintillaBase subclass needs access to much of Editor
/** On GTK+, Scintilla is a container widget holding two scroll bars
@@ -261,6 +257,9 @@ protected: // ScintillaBase subclass needs access to much of Editor
bool convertPastes;
Editor();
+ // Deleted so Editor objects can not be copied
+ explicit Editor(const Editor &) = delete;
+ Editor &operator=(const Editor &) = delete;
~Editor() override;
virtual void Initialise() = 0;
virtual void Finalise();