aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/DocumentAccessor.h
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/DocumentAccessor.h
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/DocumentAccessor.h')
-rw-r--r--src/DocumentAccessor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DocumentAccessor.h b/src/DocumentAccessor.h
index 92440428e..899865fc1 100644
--- a/src/DocumentAccessor.h
+++ b/src/DocumentAccessor.h
@@ -17,8 +17,8 @@ class Document;
class DocumentAccessor : public Accessor {
// Private so DocumentAccessor objects can not be copied
- DocumentAccessor(const DocumentAccessor &source) : Accessor(), props(source.props) {}
- DocumentAccessor &operator=(const DocumentAccessor &) { return *this; }
+ DocumentAccessor(const DocumentAccessor &source);
+ DocumentAccessor &operator=(const DocumentAccessor &);
protected:
Document *pdoc;