Clang-11 fixes for applied forces
[alexxy/gromacs.git] / src / gromacs / applied_forces / awh / tests / bias.cpp
index e1015c5b6de53a7afa4ba70e2b41465d3ee40d5c..880ae18f90af618a3940dbc3695124309101a6a9 100644 (file)
@@ -188,7 +188,7 @@ TEST_P(BiasTest, 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());