From a02895765515eddb3511de7068d9aa89907ed9fa Mon Sep 17 00:00:00 2001 From: nicogno Date: Thu, 8 Aug 2024 09:59:06 -0400 Subject: [PATCH] Fixed issue raised by SonarCloud --- src/core/interaction_force.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/interaction_force.cc b/src/core/interaction_force.cc index 27418e44d..6f03ca4d5 100644 --- a/src/core/interaction_force.cc +++ b/src/core/interaction_force.cc @@ -64,7 +64,7 @@ void InteractionForce::ForceBetweenSpheres(const Agent* sphere_lhs, real_t ref_diameter = sphere_lhs->GetDiameter(); const Real3& nb_mass_location = sphere_rhs->GetPosition(); real_t nb_diameter = sphere_rhs->GetDiameter(); - auto* sim = Simulation::GetActive(); + const auto* sim = Simulation::GetActive(); auto* param = sim->GetParam(); auto c1 = ref_mass_location;