templatesimplifier: fix two warnings about nonexplicit constructors.
Was: [lib/templatesimplifier.cpp:37]: (style) Class 'FindToken' has a constructor with 1 argument that is not explicit. [lib/templatesimplifier.cpp:47]: (style) Class 'FindName' has a constructor with 1 argument that is not explicit.
This commit is contained in:
parent
f74c19bbed
commit
94790620d6
|
@ -34,7 +34,7 @@
|
|||
namespace {
|
||||
class FindToken {
|
||||
public:
|
||||
FindToken(const Token *t) : token(t) {}
|
||||
explicit FindToken(const Token *t) : token(t) {}
|
||||
bool operator()(const TemplateSimplifier::TokenAndName &t) const {
|
||||
return t.token == token;
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ namespace {
|
|||
|
||||
class FindName {
|
||||
public:
|
||||
FindName(const std::string &s) : name(s) {}
|
||||
explicit FindName(const std::string &s) : name(s) {}
|
||||
bool operator()(const TemplateSimplifier::TokenAndName &t) const {
|
||||
return t.name == name;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue