use references when looping over fixes from list

This commit is contained in:
Axel Kohlmeyer
2021-10-25 21:41:57 -04:00
parent d0416757b7
commit 8bf016eaef
8 changed files with 17 additions and 17 deletions

View File

@ -413,7 +413,7 @@ void WriteRestart::write(const std::string &file)
// invoke any fixes that write their own restart file
for (auto fix : modify->get_fix_list())
for (auto &fix : modify->get_fix_list())
if (fix->restart_file)
fix->write_restart_file(file.c_str());
}