Skip to content

Commit

Permalink
Eliminating deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rlancaste committed Apr 20, 2024
1 parent b5648e3 commit b5f322b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stellarsolver/internalextractorsolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ int InternalExtractorSolver::runSEPExtractor()
}

double sumGlobal = 0, sumRmsSq = 0;
for (const auto &bg : qAsConst(backgrounds))
for (const auto &bg : std::as_const(backgrounds))
{
sumGlobal += bg.global;
sumRmsSq += bg.globalrms * bg.globalrms;
Expand Down

0 comments on commit b5f322b

Please sign in to comment.