diff options
author | Neil <nyamatongwe@gmail.com> | 2013-12-15 12:49:06 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-12-15 12:49:06 +1100 |
commit | b4c46f78da230ff3077bc2b96ac66f5ac017c7a2 (patch) | |
tree | 3a06d1dc7b2deb5e25d5e148666f086fb0864ff4 /lexers/LexCPP.cxx | |
parent | 982a9be5d39fb042e1deb86af5930cb54729f83f (diff) | |
download | scintilla-mirror-b4c46f78da230ff3077bc2b96ac66f5ac017c7a2.tar.gz |
Make single argument constructors explicit to avoid unexpected conversions.
Diffstat (limited to 'lexers/LexCPP.cxx')
-rw-r--r-- | lexers/LexCPP.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index 91d308217..1ec16898f 100644 --- a/lexers/LexCPP.cxx +++ b/lexers/LexCPP.cxx @@ -336,7 +336,7 @@ class LexerCPP : public ILexerWithSubStyles { enum { ssIdentifier, ssDocKeyword }; SubStyles subStyles; public: - LexerCPP(bool caseSensitive_) : + explicit LexerCPP(bool caseSensitive_) : caseSensitive(caseSensitive_), setWord(CharacterSet::setAlphaNum, "._", 0x80, true), setNegationOp(CharacterSet::setNone, "!"), @@ -485,7 +485,7 @@ int SCI_METHOD LexerCPP::WordListSet(int n, const char *wl) { // Functor used to truncate history struct After { int line; - After(int line_) : line(line_) {} + explicit After(int line_) : line(line_) {} bool operator()(PPDefinition &p) const { return p.line > line; } |