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:
Matthias Krüger 2018-01-05 15:53:13 +01:00
parent f74c19bbed
commit 94790620d6
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}