From d9a4e803d7b5e9fde3009052653ec3fdf77c5c09 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 19 Apr 2017 17:44:09 +1000 Subject: Use =delete for unwanted functions. --- src/Editor.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/Editor.h') 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(); -- cgit v1.2.3