aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTK.h
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2019-09-30 10:42:08 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2019-09-30 10:42:08 +1000
commit10a7ea9032f2d5e21e396226588ae51bec28acf3 (patch)
tree25eb4789b580aadcede2f2e951c41ab43171f86d /gtk/ScintillaGTK.h
parent77bcd99c14dee2f05bfc65d96c27f132832f6153 (diff)
downloadscintilla-mirror-10a7ea9032f2d5e21e396226588ae51bec28acf3.tar.gz
Delete standard functions on classes where there could be attempts to copy.
Diffstat (limited to 'gtk/ScintillaGTK.h')
-rwxr-xr-x[-rw-r--r--]gtk/ScintillaGTK.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.h b/gtk/ScintillaGTK.h
index b87808824..357efee8a 100644..100755
--- a/gtk/ScintillaGTK.h
+++ b/gtk/ScintillaGTK.h
@@ -274,6 +274,12 @@ public:
g_object_weak_ref(weakRef, WeakNotify, this);
}
+ // Deleted so GObjectWatcher objects can not be copied.
+ GObjectWatcher(const GObjectWatcher&) = delete;
+ GObjectWatcher(GObjectWatcher&&) = delete;
+ GObjectWatcher&operator=(const GObjectWatcher&) = delete;
+ GObjectWatcher&operator=(GObjectWatcher&&) = delete;
+
virtual ~GObjectWatcher() {
if (weakRef) {
g_object_weak_unref(weakRef, WeakNotify, this);