aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.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/CellBuffer.h
parentcd65e0b6478f38b809dd08805e7795a9d8b669eb (diff)
downloadscintilla-mirror-261277783fa16e0c974b1981a5eb0a208fca955e.tar.gz
More consistent deletion of standard methods.
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r--src/CellBuffer.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h
index c073d5e5e..8667b8bfa 100644
--- a/src/CellBuffer.h
+++ b/src/CellBuffer.h
@@ -32,6 +32,9 @@ class LineVector {
public:
LineVector();
+ // Deleted so LineVector objects can not be copied.
+ LineVector(const LineVector &) = delete;
+ void operator=(const LineVector &) = delete;
~LineVector();
void Init();
void SetPerLine(PerLine *pl);
@@ -63,6 +66,9 @@ public:
bool mayCoalesce;
Action();
+ // Deleted so Action objects can not be copied.
+ Action(const Action &) = delete;
+ void operator=(const Action &) = delete;
~Action();
void Create(actionType at_, Sci::Position position_=0, const char *data_=0, Sci::Position lenData_=0, bool mayCoalesce_=true);
void Destroy();
@@ -85,8 +91,9 @@ class UndoHistory {
public:
UndoHistory();
- // Deleted so UndoHistory objects can not be copied
+ // Deleted so UndoHistory objects can not be copied.
UndoHistory(const UndoHistory &) = delete;
+ void operator=(const UndoHistory &) = delete;
~UndoHistory();
const char *AppendAction(actionType at, Sci::Position position, const char *data, Sci::Position lengthData, bool &startSequence, bool mayCoalesce=true);
@@ -145,6 +152,9 @@ private:
public:
CellBuffer();
+ // Deleted so CellBuffer objects can not be copied.
+ CellBuffer(const CellBuffer &) = delete;
+ void operator=(const CellBuffer &) = delete;
~CellBuffer();
/// Retrieving positions outside the range of the buffer works and returns 0