use references instead of copies when looping over list of selected fixes

This commit is contained in:
Axel Kohlmeyer
2023-08-03 11:00:05 -04:00
parent a6d178194e
commit cc9dee5ecd
8 changed files with 8 additions and 8 deletions

View File

@ -609,7 +609,7 @@ void FixDeform::init()
rfix.clear();
for (auto ifix : modify->get_fix_list())
for (auto &ifix : modify->get_fix_list())
if (ifix->rigid_flag) rfix.push_back(ifix);
}