Skip to content

Commit

Permalink
clang-tidy stuff
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
jamesturner246 and github-actions[bot] committed Aug 20, 2024
1 parent 4b15f14 commit 464cd4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/HealthGPS/static_linear_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ void StaticLinearModel::update_policies(Person &person, bool intervene) const {
// Set zero policy if not intervening.
if (!intervene) {
for (size_t i = 0; i < names_.size(); i++) {
auto policy_name = core::Identifier{names_[i].to_string() + "_policy"};
for (const auto & name : names_) {
auto policy_name = core::Identifier{name.to_string() + "_policy"};
person.risk_factors[policy_name] = 0.0;
}
return;
Expand Down

0 comments on commit 464cd4d

Please sign in to comment.