aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PerLine.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-21 09:30:16 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-21 09:30:16 +1000
commit261277783fa16e0c974b1981a5eb0a208fca955e (patch)
treef9a75c9fd718ef57994b775e6d653983e5634085 /src/PerLine.h
parentcd65e0b6478f38b809dd08805e7795a9d8b669eb (diff)
downloadscintilla-mirror-261277783fa16e0c974b1981a5eb0a208fca955e.tar.gz
More consistent deletion of standard methods.
Diffstat (limited to 'src/PerLine.h')
-rw-r--r--src/PerLine.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/PerLine.h b/src/PerLine.h
index faf4c1cd8..300a50a86 100644
--- a/src/PerLine.h
+++ b/src/PerLine.h
@@ -30,6 +30,9 @@ class MarkerHandleSet {
public:
MarkerHandleSet();
+ // Deleted so MarkerHandleSet objects can not be copied.
+ MarkerHandleSet(const MarkerHandleSet &) = delete;
+ void operator=(const MarkerHandleSet &) = delete;
~MarkerHandleSet();
int Length() const;
int MarkValue() const; ///< Bit set of marker numbers.
@@ -47,6 +50,9 @@ class LineMarkers : public PerLine {
public:
LineMarkers() : handleCurrent(0) {
}
+ // Deleted so Worker objects can not be copied.
+ LineMarkers(const LineMarkers &) = delete;
+ void operator=(const LineMarkers &) = delete;
virtual ~LineMarkers();
void Init() override;
void InsertLine(Sci::Line line) override;
@@ -64,6 +70,11 @@ public:
class LineLevels : public PerLine {
SplitVector<int> levels;
public:
+ LineLevels() {
+ }
+ // Deleted so Worker objects can not be copied.
+ LineLevels(const LineLevels &) = delete;
+ void operator=(const LineLevels &) = delete;
virtual ~LineLevels();
void Init() override;
void InsertLine(Sci::Line line) override;
@@ -80,6 +91,9 @@ class LineState : public PerLine {
public:
LineState() {
}
+ // Deleted so Worker objects can not be copied.
+ LineState(const LineState &) = delete;
+ void operator=(const LineState &) = delete;
virtual ~LineState();
void Init() override;
void InsertLine(Sci::Line line) override;
@@ -95,6 +109,9 @@ class LineAnnotation : public PerLine {
public:
LineAnnotation() {
}
+ // Deleted so Worker objects can not be copied.
+ LineAnnotation(const LineAnnotation &) = delete;
+ void operator=(const LineAnnotation &) = delete;
virtual ~LineAnnotation();
void Init() override;
void InsertLine(Sci::Line line) override;
@@ -119,6 +136,9 @@ class LineTabstops : public PerLine {
public:
LineTabstops() {
}
+ // Deleted so Worker objects can not be copied.
+ LineTabstops(const LineTabstops &) = delete;
+ void operator=(const LineTabstops &) = delete;
virtual ~LineTabstops();
void Init() override;
void InsertLine(Sci::Line line) override;