diff options
author | Neil <nyamatongwe@gmail.com> | 2015-05-16 14:51:29 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-05-16 14:51:29 +1000 |
commit | 8e17031cd967768d60b23e862cd66028202485ae (patch) | |
tree | 04b37f4659874db905f7d6780ca0a1952e6d9ad6 | |
parent | d5703a86717780d6c0a038ed66bbf5f80d6e673b (diff) | |
download | scintilla-mirror-8e17031cd967768d60b23e862cd66028202485ae.tar.gz |
Make unused single argument constructors explicit.
-rw-r--r-- | src/EditModel.h | 2 | ||||
-rw-r--r-- | src/Editor.h | 2 | ||||
-rw-r--r-- | src/ScintillaBase.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/EditModel.h b/src/EditModel.h index fce26bd22..33c1ac0df 100644 --- a/src/EditModel.h +++ b/src/EditModel.h @@ -25,7 +25,7 @@ public: class EditModel { // Private so EditModel objects can not be copied - EditModel(const EditModel &); + explicit EditModel(const EditModel &); EditModel &operator=(const EditModel &); public: diff --git a/src/Editor.h b/src/Editor.h index 1fc907ac7..2bf8336fa 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -153,7 +153,7 @@ struct WrapPending { */ class Editor : public EditModel, public DocWatcher { // Private so Editor objects can not be copied - Editor(const Editor &); + explicit Editor(const Editor &); Editor &operator=(const Editor &); protected: // ScintillaBase subclass needs access to much of Editor diff --git a/src/ScintillaBase.h b/src/ScintillaBase.h index 668abed3c..d6401cc30 100644 --- a/src/ScintillaBase.h +++ b/src/ScintillaBase.h @@ -20,7 +20,7 @@ class LexState; */ class ScintillaBase : public Editor { // Private so ScintillaBase objects can not be copied - ScintillaBase(const ScintillaBase &); + explicit ScintillaBase(const ScintillaBase &); ScintillaBase &operator=(const ScintillaBase &); protected: |