Skip to content

Commit

Permalink
use const iterator in faults config
Browse files Browse the repository at this point in the history
  • Loading branch information
JoGei committed Dec 1, 2021
1 parent 746b340 commit 3087cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ETISS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ void etiss::initialize_virtualstruct(std::shared_ptr<etiss::CPUCore> cpu_core)
if (!faults.empty())
{
std::list<std::string> ffs = etiss::split(faults, ';');
for (auto ff : ffs)
for (const auto& ff : ffs)
{
auto stressor_successful = etiss::fault::Stressor::loadXML(ff, cpu_core->getID());
if (!stressor_successful)
Expand Down Expand Up @@ -1034,4 +1034,4 @@ std::string etiss::errorMessage(etiss::int32 code, CPUArch *arch)
return "Unknown CPU architecture dependent error code.";
}
}
}
}

0 comments on commit 3087cae

Please sign in to comment.