From 9785733416ef26d325802b81692f6fdc3506be55 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. --- src/Editor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index 0c04b41cd..1dccf35c7 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -38,6 +38,9 @@ public: }; class Editor : public DocWatcher { + // Private so Editor objects can not be copied + Editor(const Editor &) : DocWatcher() {} + Editor &operator=(const Editor &) { return *this; } protected: // ScintillaBase subclass needs access to much of Editor // On GTK+, Scintilla is a container widget holding two scroll bars and a drawing area -- cgit v1.2.3