aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTK.cxx
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.cxx
parent77bcd99c14dee2f05bfc65d96c27f132832f6153 (diff)
downloadscintilla-mirror-10a7ea9032f2d5e21e396226588ae51bec28acf3.tar.gz
Delete standard functions on classes where there could be attempts to copy.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
-rwxr-xr-x[-rw-r--r--]gtk/ScintillaGTK.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 5da17aacf..9162010c4 100644..100755
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -433,6 +433,11 @@ public:
uniStr = g_utf8_to_ucs4_fast(str, strlen(str), &uniStrLen);
pscript = pango_script_for_unichar(uniStr[0]);
}
+ // Deleted so PreEditString objects can not be copied.
+ PreEditString(const PreEditString&) = delete;
+ PreEditString(PreEditString&&) = delete;
+ PreEditString&operator=(const PreEditString&) = delete;
+ PreEditString&operator=(PreEditString&&) = delete;
~PreEditString() {
g_free(str);
g_free(uniStr);
@@ -1202,6 +1207,11 @@ struct CaseMapper {
mapped = g_utf8_strdown(sUTF8.c_str(), sUTF8.length());
}
}
+ // Deleted so CaseMapper objects can not be copied.
+ CaseMapper(const CaseMapper&) = delete;
+ CaseMapper(CaseMapper&&) = delete;
+ CaseMapper&operator=(const CaseMapper&) = delete;
+ CaseMapper&operator=(CaseMapper&&) = delete;
~CaseMapper() {
g_free(mapped);
}