aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PerLine.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-07-29 11:16:28 +1000
committerNeil <nyamatongwe@gmail.com>2022-07-29 11:16:28 +1000
commite030b1d56785405cb35531758d603be88af9b487 (patch)
tree9a428393f7963d50a0b7557e7c77ac1be37c7bb3 /src/PerLine.h
parent6e6641d4733903d3c365fd9348f3656ff7000ddf (diff)
downloadscintilla-mirror-e030b1d56785405cb35531758d603be88af9b487.tar.gz
Apply rule-of-zero to delete standard methods where possible as handled by
contained types. This allows flexibility as most lower-level data types can be moved and SplitVector and Partitioning of non-move-only types may be copied. CellBuffer still needs destructor due to incomplete type so retains all standard operations.
Diffstat (limited to 'src/PerLine.h')
-rw-r--r--src/PerLine.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/PerLine.h b/src/PerLine.h
index ef9e36932..5b57dcaa9 100644
--- a/src/PerLine.h
+++ b/src/PerLine.h
@@ -28,12 +28,6 @@ class MarkerHandleSet {
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.
bool Contains(int handle) const noexcept;
@@ -51,12 +45,6 @@ class LineMarkers : public PerLine {
public:
LineMarkers() : handleCurrent(0) {
}
- // Deleted so LineMarkers objects can not be copied.
- LineMarkers(const LineMarkers &) = delete;
- LineMarkers(LineMarkers &&) = delete;
- void operator=(const LineMarkers &) = delete;
- void operator=(LineMarkers &&) = delete;
- ~LineMarkers() override;
void Init() override;
void InsertLine(Sci::Line line) override;
void InsertLines(Sci::Line line, Sci::Line lines) override;
@@ -78,12 +66,6 @@ class LineLevels : public PerLine {
public:
LineLevels() {
}
- // 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;
void InsertLines(Sci::Line line, Sci::Line lines) override;
@@ -100,12 +82,6 @@ class LineState : public PerLine {
public:
LineState() {
}
- // Deleted so LineState 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;
void InsertLines(Sci::Line line, Sci::Line lines) override;
@@ -121,12 +97,6 @@ class LineAnnotation : public PerLine {
public:
LineAnnotation() {
}
- // Deleted so LineAnnotation objects can not be copied.
- LineAnnotation(const LineAnnotation &) = delete;
- LineAnnotation(LineAnnotation &&) = delete;
- void operator=(const LineAnnotation &) = delete;
- void operator=(LineAnnotation &&) = delete;
- ~LineAnnotation() override;
[[nodiscard]] bool Empty() const noexcept;
void Init() override;
@@ -153,12 +123,6 @@ class LineTabstops : public PerLine {
public:
LineTabstops() {
}
- // Deleted so LineTabstops 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;
void InsertLines(Sci::Line line, Sci::Line lines) override;