From 2b655a29a4e4d7e343884b85742aed8a033b6eef Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 7 Apr 2000 12:04:36 +0000 Subject: Changing code to ensure no warnings are produced by compilers. --- include/Platform.h | 1 + include/WindowAccessor.h | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'include') 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); -- cgit v1.2.3