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/CellBuffer.cxx | |
| 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/CellBuffer.cxx')
| -rw-r--r-- | src/CellBuffer.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 7232c7db9..5229dee61 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -53,6 +53,11 @@ public: LineVector() : starts(256), perLine(0) { Init(); } + // Deleted so LineVector objects can not be copied. + LineVector(const LineVector &) = delete; + LineVector(LineVector &&) = delete; + LineVector &operator=(const LineVector &) = delete; + LineVector &operator=(LineVector &&) = delete; ~LineVector() override { } void Init() override { |
