diff options
author | nyamatongwe <devnull@localhost> | 2013-01-19 14:38:06 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-01-19 14:38:06 +1100 |
commit | a30cba782eca76807bde43f1f693d3f923ce6d8c (patch) | |
tree | cf21f399196d4cff783e9649755619b5ebfc6503 /src/PositionCache.h | |
parent | 7a767545ea772f9b246e1fe8914226a94291ca61 (diff) | |
download | scintilla-mirror-a30cba782eca76807bde43f1f693d3f923ce6d8c.tar.gz |
Add private copy constructors to prevent copying and avoid warnings.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r-- | src/PositionCache.h | 4 |
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(); |