avoid copying strings
This commit is contained in:
parent
63a04d14e5
commit
1427275abd
@ -1097,7 +1097,7 @@ bool ESmry::make_esmry_file()
|
|||||||
std::vector<std::string> units;
|
std::vector<std::string> units;
|
||||||
units.reserve(keyword.size());
|
units.reserve(keyword.size());
|
||||||
|
|
||||||
for (auto key : keyword)
|
for (const auto& key : keyword)
|
||||||
units.push_back(kwunits.at(key));
|
units.push_back(kwunits.at(key));
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user