aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Platform.h1
-rw-r--r--include/WindowAccessor.h6
2 files changed, 6 insertions, 1 deletions
diff --git a/include/Platform.h b/include/Platform.h
index 1ac931ce2..b60469488 100644
--- a/include/Platform.h
+++ b/include/Platform.h
@@ -308,6 +308,7 @@ protected:
WindowID id;
public:
Window() : id(0) {}
+ Window(const Window &source) : id(source.id) {}
virtual ~Window();
Window &operator=(WindowID id_) {
id = id_;
diff --git a/include/WindowAccessor.h b/include/WindowAccessor.h
index 9b09d9d08..567c47894 100644
--- a/include/WindowAccessor.h
+++ b/include/WindowAccessor.h
@@ -3,6 +3,9 @@
// The License.txt file describes the conditions under which this software may be distributed.
class WindowAccessor : public Accessor {
+ // Private so WindowAccessor objects can not be copied
+ WindowAccessor(const WindowAccessor &source) : Accessor(), props(source.props) {}
+ WindowAccessor &operator=(const WindowAccessor &) { return *this; }
protected:
WindowID id;
PropSet &props;
@@ -18,7 +21,8 @@ protected:
void Fill(int position);
public:
WindowAccessor(WindowID id_, PropSet &props_) :
- id(id_), props(props_), lenDoc(-1), validLen(0), chFlags(0) {
+ Accessor(), id(id_), props(props_),
+ lenDoc(-1), validLen(0), chFlags(0) {
}
~WindowAccessor();
char StyleAt(int position);