Fix clang warning
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_pme_error.cpp
index c621f00736c6fb2d03aa404afc6c4b114cf46c64..48ed788268d30ecf4221efe43e3017767fbdf5c3 100644 (file)
@@ -810,7 +810,7 @@ static int prepare_x_q(real *q[], rvec *x[], const gmx_mtop_t *mtop, const rvec
         snew(*x, mtop->natoms);
         nq = 0;
 
-        for (const AtomProxy &atomP : AtomRange(*mtop))
+        for (const AtomProxy atomP : AtomRange(*mtop))
         {
             const t_atom &local = atomP.atom();
             int           i     = atomP.globalAtomNumber();