Add explicit keyword to constructors
To avoid unexpected implicit casts.
This commit is contained in:
parent
3d9351f61e
commit
1692ed2a17
|
@ -63,7 +63,7 @@ public:
|
|||
};
|
||||
<endif>
|
||||
|
||||
<lexer.name>(antlr4::CharStream *input);
|
||||
explicit <lexer.name>(antlr4::CharStream *input);
|
||||
~<lexer.name>();
|
||||
|
||||
<namedActions.members>
|
||||
|
@ -290,7 +290,7 @@ public:
|
|||
};
|
||||
<endif>
|
||||
|
||||
<parser.name>(antlr4::TokenStream *input);
|
||||
explicit <parser.name>(antlr4::TokenStream *input);
|
||||
~<parser.name>();
|
||||
|
||||
virtual std::string getGrammarFileName() const override;
|
||||
|
|
Loading…
Reference in New Issue