diff options
author | Neil <nyamatongwe@gmail.com> | 2022-07-30 09:25:57 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-07-30 09:25:57 +1000 |
commit | 440bc7509db77ef88326f6c7d98395bc970f3b6f (patch) | |
tree | 4bfea7fd18e9d82b904e06f8b8adb65e5232cf27 /src/CellBuffer.cxx | |
parent | e030b1d56785405cb35531758d603be88af9b487 (diff) | |
download | scintilla-mirror-440bc7509db77ef88326f6c7d98395bc970f3b6f.tar.gz |
Apply rule-of-zero to CellBuffer internals.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 9a509f2eb..a2cee4fcf 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -98,13 +98,6 @@ public: LineStartIndex() : refCount(0), starts(4) { // Minimal initial allocation } - // Deleted so LineStartIndex objects can not be copied. - LineStartIndex(const LineStartIndex &) = delete; - LineStartIndex(LineStartIndex &&) = delete; - void operator=(const LineStartIndex &) = delete; - void operator=(LineStartIndex &&) = delete; - virtual ~LineStartIndex() { - } bool Allocate(Sci::Line lines) { refCount++; Sci::Position length = starts.PositionFromPartition(starts.Partitions()); @@ -166,13 +159,6 @@ class LineVector : public ILineVector { public: LineVector() : starts(256), perLine(nullptr), activeIndices(LineCharacterIndexType::None) { } - // 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 { starts.DeleteAll(); if (perLine) { |