Clang-11 fixes for applied forces
[alexxy/gromacs.git] / src / gromacs / applied_forces / awh / tests / bias_fep_lambda_state.cpp
index 787b88f960c76f44fd44ca179f112b6d8222b115..5e1e01618514cc9a3ef8c1bca6c62506753c8690 100644 (file)
@@ -200,7 +200,7 @@ TEST_P(BiasFepLambdaStateTest, ForcesBiasPmf)
     }
 
     std::vector<double> pointBias, logPmfsum;
-    for (auto& point : bias.state().points())
+    for (const auto& point : bias.state().points())
     {
         pointBias.push_back(point.bias());
         logPmfsum.push_back(point.logPmfSum());