diff options
-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: |