refactor : switch to emplace_back to avoid extra object (#5291)

This commit is contained in:
Michael Klimenko authored and GitHub committed 2024-02-03 13:23:37 +02:00
1 parent 1ec3332ade
commit 52bb63c708
8 files changed
+36 -36

No files matched your search

+1 -1
View File
@@ -105,7 +105,7 @@ int main()
for (auto rule : expected_rules)
{
parsed_grammar.rules.push_back({});
parsed_grammar.rules.emplace_back();
for (auto element : rule)
{
parsed_grammar.rules.back().push_back(element);