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. --- src/ScintillaBase.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ScintillaBase.cxx') diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 9c4e8cf78..9855c1638 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -553,6 +553,11 @@ public: int lexLanguage; explicit LexState(Document *pdoc_); + // Deleted so LexState objects can not be copied. + LexState(const LexState &) = delete; + LexState(LexState &&) = delete; + LexState &operator=(const LexState &) = delete; + LexState &operator=(LexState &&) = delete; ~LexState() override; void SetLexer(uptr_t wParam); void SetLexerLanguage(const char *languageName); -- cgit v1.2.3