From b5f322bf86dd59ee89c544b08ed1a564d9e0a902 Mon Sep 17 00:00:00 2001 From: Robert Lancaster Date: Sat, 20 Apr 2024 11:47:10 -0400 Subject: [PATCH] Eliminating deprecation warning --- stellarsolver/internalextractorsolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stellarsolver/internalextractorsolver.cpp b/stellarsolver/internalextractorsolver.cpp index 044f076..390ffcd 100644 --- a/stellarsolver/internalextractorsolver.cpp +++ b/stellarsolver/internalextractorsolver.cpp @@ -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;