aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
diff options
context:
space:
mode:
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_);