From 9472b43539e7b4a6a3f5e657b0ec06e9e6e5eab9 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 28 Apr 2018 10:31:25 +1000 Subject: Delete standard functions on classes where there could be attempts to copy. --- gtk/ScintillaGTK.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.h b/gtk/ScintillaGTK.h index 8a72b4002..5e510257e 100644 --- a/gtk/ScintillaGTK.h +++ b/gtk/ScintillaGTK.h @@ -74,7 +74,9 @@ public: explicit ScintillaGTK(_ScintillaObject *sci_); // Deleted so ScintillaGTK objects can not be copied. ScintillaGTK(const ScintillaGTK &) = delete; + ScintillaGTK(ScintillaGTK &&) = delete; ScintillaGTK &operator=(const ScintillaGTK &) = delete; + ScintillaGTK &operator=(ScintillaGTK &&) = delete; virtual ~ScintillaGTK(); static ScintillaGTK *FromWidget(GtkWidget *widget); static void ClassInit(OBJECT_CLASS* object_class, GtkWidgetClass *widget_class, GtkContainerClass *container_class); -- cgit v1.2.3