aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-01-28 04:50:27 +0000
committernyamatongwe <unknown>2010-01-28 04:50:27 +0000
commitca44a024da3b95f46c3a8422b29314defd4ae64b (patch)
tree35d98352a6038f75dada3cd0620bd89eb35fb90d /src/Editor.cxx
parent205e394a6bf7f3e7636af0715103c28422d7a6aa (diff)
downloadscintilla-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.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index e1dcb38bc..8cfbbd6e4 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -336,7 +336,7 @@ const char *ControlCharacterString(unsigned char ch) {
class AutoLineLayout {
LineLayoutCache &llc;
LineLayout *ll;
- AutoLineLayout &operator=(const AutoLineLayout &) { return * this; }
+ AutoLineLayout &operator=(const AutoLineLayout &);
public:
AutoLineLayout(LineLayoutCache &llc_, LineLayout *ll_) : llc(llc_), ll(ll_) {}
~AutoLineLayout() {