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 | 9472b43539e7b4a6a3f5e657b0ec06e9e6e5eab9 (patch) | |
tree | 2486c7953942f70d46f805c5a809165c98424500 /src/CellBuffer.cxx | |
parent | 3173850f9261c9af83c91e92450879b233565670 (diff) | |
download | scintilla-mirror-9472b43539e7b4a6a3f5e657b0ec06e9e6e5eab9.tar.gz |
Delete standard functions on classes where there could be attempts to copy.
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 893938f2f..f1ac548cc 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 { |