avoid copying strings

This commit is contained in:
Arne Morten Kvarving 2023-11-17 12:37:52 +01:00
parent 63a04d14e5
commit 1427275abd

View File

@ -1097,7 +1097,7 @@ bool ESmry::make_esmry_file()
std::vector<std::string> units;
units.reserve(keyword.size());
for (auto key : keyword)
for (const auto& key : keyword)
units.push_back(kwunits.at(key));