Make some implicit constructors explicit

This commit is contained in:
Max Brunsfeld 2014-03-09 22:53:49 -07:00
parent a4120f36d4
commit 504c361cb8
8 changed files with 9 additions and 8 deletions

View file

@ -9,7 +9,7 @@ namespace tree_sitter {
class Pattern : public Rule {
const std::string value;
public:
Pattern(const std::string &string);
explicit Pattern(const std::string &string);
bool operator==(const Rule& other) const;
size_t hash_code() const;