From cd65e0b6478f38b809dd08805e7795a9d8b669eb Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 20 Apr 2017 16:10:17 +1000 Subject: More consistent deletion of standard methods. --- win32/ScintillaWin.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'win32') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index e4547f6b6..91a68fbf2 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -272,9 +272,10 @@ class ScintillaWin : #endif explicit ScintillaWin(HWND hwnd); - ScintillaWin(const ScintillaWin &); + // Deleted so ScintillaWin objects can not be copied + ScintillaWin(const ScintillaWin &) = delete; + ScintillaWin &operator=(const ScintillaWin &) = delete; ~ScintillaWin() override; - ScintillaWin &operator=(const ScintillaWin &); void Init(); void Finalise() override; -- cgit v1.2.3