Fix missing initializer warnings
This commit is contained in:
parent
8d48c3e48a
commit
11acc7d087
2 changed files with 3 additions and 2 deletions
|
|
@ -27,8 +27,8 @@ namespace tree_sitter {
|
|||
|
||||
class Grammar {
|
||||
protected:
|
||||
std::vector<std::string> ubiquitous_tokens_;
|
||||
const std::vector<std::pair<std::string, rules::rule_ptr>> rules_;
|
||||
std::vector<std::string> ubiquitous_tokens_;
|
||||
|
||||
public:
|
||||
Grammar(const std::vector<std::pair<std::string, rules::rule_ptr>> &rules);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@ namespace tree_sitter {
|
|||
using rules::rule_ptr;
|
||||
|
||||
Grammar::Grammar(const std::vector<std::pair<std::string, rules::rule_ptr>> &rules) :
|
||||
rules_(rules) {}
|
||||
rules_(rules),
|
||||
ubiquitous_tokens_({}) {}
|
||||
|
||||
bool Grammar::operator==(const Grammar &other) const {
|
||||
if (other.rules_.size() != rules_.size()) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue