diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-04-28 10:31:25 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-04-28 10:31:25 +1000 |
| commit | 06220b1501744c5cebc861e6e6e06449814b1d60 (patch) | |
| tree | 2580e78f4473f8f3b756462484fc5506a581dd15 /src/PerLine.h | |
| parent | 774bb684b2afbf1637f7fa29e13fd901d15681d6 (diff) | |
| download | scintilla-mirror-06220b1501744c5cebc861e6e6e06449814b1d60.tar.gz | |
Backport: Delete standard functions on classes where there could be attempts to copy.
Backport of changeset 6756:29866b0927e0.
Diffstat (limited to 'src/PerLine.h')
| -rw-r--r-- | src/PerLine.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/PerLine.h b/src/PerLine.h index c75a83f65..ad9f9ee75 100644 --- a/src/PerLine.h +++ b/src/PerLine.h @@ -30,7 +30,9 @@ public: MarkerHandleSet(); // Deleted so MarkerHandleSet objects can not be copied. MarkerHandleSet(const MarkerHandleSet &) = delete; + MarkerHandleSet(MarkerHandleSet &&) = delete; void operator=(const MarkerHandleSet &) = delete; + void operator=(MarkerHandleSet &&) = delete; ~MarkerHandleSet(); bool Empty() const noexcept; int MarkValue() const noexcept; ///< Bit set of marker numbers. @@ -72,9 +74,11 @@ class LineLevels : public PerLine { public: LineLevels() { } - // Deleted so Worker objects can not be copied. + // Deleted so LineLevels objects can not be copied. LineLevels(const LineLevels &) = delete; + LineLevels(LineLevels &&) = delete; void operator=(const LineLevels &) = delete; + void operator=(LineLevels &&) = delete; ~LineLevels() override; void Init() override; void InsertLine(Sci::Line line) override; @@ -93,7 +97,9 @@ public: } // Deleted so Worker objects can not be copied. LineState(const LineState &) = delete; + LineState(LineState &&) = delete; void operator=(const LineState &) = delete; + void operator=(LineState &&) = delete; ~LineState() override; void Init() override; void InsertLine(Sci::Line line) override; @@ -111,7 +117,9 @@ public: } // Deleted so Worker objects can not be copied. LineAnnotation(const LineAnnotation &) = delete; + LineAnnotation(LineAnnotation &&) = delete; void operator=(const LineAnnotation &) = delete; + void operator=(LineAnnotation &&) = delete; ~LineAnnotation() override; void Init() override; void InsertLine(Sci::Line line) override; @@ -138,7 +146,9 @@ public: } // Deleted so Worker objects can not be copied. LineTabstops(const LineTabstops &) = delete; + LineTabstops(LineTabstops &&) = delete; void operator=(const LineTabstops &) = delete; + void operator=(LineTabstops &&) = delete; ~LineTabstops() override; void Init() override; void InsertLine(Sci::Line line) override; |
