diff options
| author | Neil <nyamatongwe@gmail.com> | 2017-04-19 17:44:09 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2017-04-19 17:44:09 +1000 |
| commit | d9a4e803d7b5e9fde3009052653ec3fdf77c5c09 (patch) | |
| tree | 45858426901e942a5f1cd8b1f4a5805902e125c0 /gtk | |
| parent | c085f3f8458110eca0874343b45b34acc9827631 (diff) | |
| download | scintilla-mirror-d9a4e803d7b5e9fde3009052653ec3fdf77c5c09.tar.gz | |
Use =delete for unwanted functions.
Diffstat (limited to 'gtk')
| -rw-r--r-- | gtk/ScintillaGTK.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/ScintillaGTK.h b/gtk/ScintillaGTK.h index 37f8dca31..c227d7b77 100644 --- a/gtk/ScintillaGTK.h +++ b/gtk/ScintillaGTK.h @@ -71,12 +71,11 @@ class ScintillaGTK : public ScintillaBase { int accessibilityEnabled; AtkObject *accessible; - // Private so ScintillaGTK objects can not be copied - ScintillaGTK(const ScintillaGTK &); - ScintillaGTK &operator=(const ScintillaGTK &); - public: explicit ScintillaGTK(_ScintillaObject *sci_); + // Deleted so ScintillaGTK objects can not be copied + ScintillaGTK(const ScintillaGTK &) = delete; + ScintillaGTK &operator=(const ScintillaGTK &) = delete; virtual ~ScintillaGTK(); static ScintillaGTK *FromWidget(GtkWidget *widget); static void ClassInit(OBJECT_CLASS* object_class, GtkWidgetClass *widget_class, GtkContainerClass *container_class); |
