aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Partitioning.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/Partitioning.h
parentcd65e0b6478f38b809dd08805e7795a9d8b669eb (diff)
downloadscintilla-mirror-261277783fa16e0c974b1981a5eb0a208fca955e.tar.gz
More consistent deletion of standard methods.
Diffstat (limited to 'src/Partitioning.h')
-rw-r--r--src/Partitioning.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Partitioning.h b/src/Partitioning.h
index 2c82cfac9..726b7fcdb 100644
--- a/src/Partitioning.h
+++ b/src/Partitioning.h
@@ -22,6 +22,9 @@ public:
SetGrowSize(growSize_);
ReAllocate(growSize_);
}
+ // Deleted so SplitVectorWithRangeAdd objects can not be copied.
+ SplitVectorWithRangeAdd(const SplitVectorWithRangeAdd &) = delete;
+ void operator=(const SplitVectorWithRangeAdd &) = delete;
~SplitVectorWithRangeAdd() {
}
void RangeAddDelta(int start, int end, int delta) {
@@ -92,6 +95,10 @@ public:
Allocate(growSize);
}
+ // Deleted so Partitioning objects can not be copied.
+ Partitioning(const Partitioning &) = delete;
+ void operator=(const Partitioning &) = delete;
+
~Partitioning() {
delete body;
body = 0;