diff options
author | nyamatongwe <unknown> | 2010-01-28 04:50:27 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-01-28 04:50:27 +0000 |
commit | ca44a024da3b95f46c3a8422b29314defd4ae64b (patch) | |
tree | 35d98352a6038f75dada3cd0620bd89eb35fb90d /src/Editor.h | |
parent | 205e394a6bf7f3e7636af0715103c28422d7a6aa (diff) | |
download | scintilla-mirror-ca44a024da3b95f46c3a8422b29314defd4ae64b.tar.gz |
Avoiding warnings from cppcheck. Mostly removing bodies of private copy
constructors and operator=.
Also ensuring initialisation for some fields, reducing scope where
possible, and passing by const reference.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.h b/src/Editor.h index e83dbdcb3..a0431df29 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -98,8 +98,8 @@ public: */ class Editor : public DocWatcher { // Private so Editor objects can not be copied - Editor(const Editor &) : DocWatcher() {} - Editor &operator=(const Editor &) { return *this; } + Editor(const Editor &); + Editor &operator=(const Editor &); protected: // ScintillaBase subclass needs access to much of Editor |