diff options
author | nyamatongwe <unknown> | 2013-01-19 14:38:06 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-01-19 14:38:06 +1100 |
commit | 4813d2aa6961aae087cf8c115fd6c88510d40a05 (patch) | |
tree | 560ad5f159c79d16b2e7f9cd2d191c8e442ae376 /src | |
parent | 24ac7c2923e2de7bc3d60679e7b6755f7a7077f3 (diff) | |
download | scintilla-mirror-4813d2aa6961aae087cf8c115fd6c88510d40a05.tar.gz |
Add private copy constructors to prevent copying and avoid warnings.
Diffstat (limited to 'src')
-rw-r--r-- | src/CellBuffer.h | 3 | ||||
-rw-r--r-- | src/PositionCache.h | 4 | ||||
-rw-r--r-- | src/RunStyles.h | 2 | ||||
-rw-r--r-- | src/ViewStyle.h | 2 |
4 files changed, 11 insertions, 0 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h index bfbb121de..cde6f5a1a 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -98,6 +98,9 @@ class UndoHistory { void EnsureUndoRoom(); + // Private so UndoHistory objects can not be copied + UndoHistory(const UndoHistory &); + public: UndoHistory(); ~UndoHistory(); 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(); diff --git a/src/RunStyles.h b/src/RunStyles.h index a3efd93c9..4e90969a2 100644 --- a/src/RunStyles.h +++ b/src/RunStyles.h @@ -23,6 +23,8 @@ private: void RemoveRun(int run); void RemoveRunIfEmpty(int run); void RemoveRunIfSameAsPrevious(int run); + // Private so RunStyles objects can not be copied + RunStyles(const RunStyles &); public: RunStyles(); ~RunStyles(); diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 25467052f..676aee7da 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -32,6 +32,8 @@ private: int size; int max; + // Private so FontNames objects can not be copied + FontNames(const FontNames &); public: FontNames(); ~FontNames(); |