From 2500ebc8eda4588b3a0cba45484470ea417afbde Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 28 Jan 2010 04:50:27 +0000 Subject: 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. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Editor.cxx') 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() { -- cgit v1.2.3