aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-01-19 14:38:06 +1100
committernyamatongwe <unknown>2013-01-19 14:38:06 +1100
commit4813d2aa6961aae087cf8c115fd6c88510d40a05 (patch)
tree560ad5f159c79d16b2e7f9cd2d191c8e442ae376 /src/PositionCache.h
parent24ac7c2923e2de7bc3d60679e7b6755f7a7077f3 (diff)
downloadscintilla-mirror-4813d2aa6961aae087cf8c115fd6c88510d40a05.tar.gz
Add private copy constructors to prevent copying and avoid warnings.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r--src/PositionCache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h
index 08ecee10a..ad3fffd7f 100644
--- a/src/PositionCache.h
+++ b/src/PositionCache.h
@@ -130,6 +130,8 @@ class BreakFinder {
int subBreak;
Document *pdoc;
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.
@@ -148,6 +150,8 @@ class PositionCache {
size_t size;
unsigned int clock;
bool allClear;
+ // Private so PositionCache objects can not be copied
+ PositionCache(const PositionCache &);
public:
PositionCache();
~PositionCache();