From 06220b1501744c5cebc861e6e6e06449814b1d60 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 28 Apr 2018 10:31:25 +1000 Subject: Backport: Delete standard functions on classes where there could be attempts to copy. Backport of changeset 6756:29866b0927e0. --- src/Editor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index 9fda8ddea..33dae2f67 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -256,8 +256,10 @@ protected: // ScintillaBase subclass needs access to much of Editor Editor(); // Deleted so Editor objects can not be copied. - explicit Editor(const Editor &) = delete; + Editor(const Editor &) = delete; + Editor(Editor &&) = delete; Editor &operator=(const Editor &) = delete; + Editor &operator=(Editor &&) = delete; ~Editor() override; virtual void Initialise() = 0; virtual void Finalise(); -- cgit v1.2.3