diff options
author | nyamatongwe <unknown> | 2000-04-07 12:04:36 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-04-07 12:04:36 +0000 |
commit | 2b655a29a4e4d7e343884b85742aed8a033b6eef (patch) | |
tree | 337dc33f1d022c7a460caf1e607bac12fe6e7b61 /include/WindowAccessor.h | |
parent | cda547b4fc80be948f4c1a0b3973706d1ba3b8eb (diff) | |
download | scintilla-mirror-2b655a29a4e4d7e343884b85742aed8a033b6eef.tar.gz |
Changing code to ensure no warnings are produced by compilers.
Diffstat (limited to 'include/WindowAccessor.h')
-rw-r--r-- | include/WindowAccessor.h | 6 |
1 files changed, 5 insertions, 1 deletions
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); |