Fix clang warning
[alexxy/gromacs.git] / src / gromacs / listed-forces / orires.cpp
index 3701cfc481cd4610bddfd9d24325d431591bc271..65fb5989db5755f8730fa25b25e1fad448d0d42b 100644 (file)
@@ -221,7 +221,7 @@ void init_orires(FILE                 *fplog,
     rvec                        com   = { 0, 0, 0 };
     double                      mtot  = 0.0;
     int                         j     = 0;
-    for (const AtomProxy &atomP : AtomRange(*mtop))
+    for (const AtomProxy atomP : AtomRange(*mtop))
     {
         const t_atom &local = atomP.atom();
         int           i     = atomP.globalAtomNumber();