aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-19 17:44:09 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-19 17:44:09 +1000
commitd9a4e803d7b5e9fde3009052653ec3fdf77c5c09 (patch)
tree45858426901e942a5f1cd8b1f4a5805902e125c0 /src/PositionCache.h
parentc085f3f8458110eca0874343b45b34acc9827631 (diff)
downloadscintilla-mirror-d9a4e803d7b5e9fde3009052653ec3fdf77c5c09.tar.gz
Use =delete for unwanted functions.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r--src/PositionCache.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h
index 56018c141..f97374cef 100644
--- a/src/PositionCache.h
+++ b/src/PositionCache.h
@@ -186,8 +186,6 @@ class BreakFinder {
EncodingFamily encodingFamily;
const SpecialRepresentations *preprs;
void Insert(int val);
- // Private so BreakFinder objects can not be copied
- BreakFinder(const BreakFinder &);
public:
// If a whole run is longer than lengthStartSubdivision then subdivide
// into smaller runs at spaces or punctuation.
@@ -196,6 +194,8 @@ public:
enum { lengthEachSubdivision = 100 };
BreakFinder(const LineLayout *ll_, const Selection *psel, Range lineRange_, Sci::Position posLineStart_,
int xStart, bool breakForSelection, const Document *pdoc_, const SpecialRepresentations *preprs_, const ViewStyle *pvsDraw);
+ // Deleted so BreakFinder objects can not be copied
+ BreakFinder(const BreakFinder &) = delete;
~BreakFinder();
TextSegment Next();
bool More() const;
@@ -205,10 +205,10 @@ class PositionCache {
std::vector<PositionCacheEntry> pces;
unsigned int clock;
bool allClear;
- // Private so PositionCache objects can not be copied
- PositionCache(const PositionCache &);
public:
PositionCache();
+ // Deleted so PositionCache objects can not be copied
+ PositionCache(const PositionCache &) = delete;
~PositionCache();
void Clear();
void SetSize(size_t size_);