aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CellBuffer.h3
-rw-r--r--src/PositionCache.h4
-rw-r--r--src/RunStyles.h2
-rw-r--r--src/ViewStyle.h2
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();