Fix clang warning
[alexxy/gromacs.git] / src / gromacs / mdlib / qmmm.cpp
index 88843e72c9a99be4dc5171890ab7fd8949dbb77c..21221afd2d846e8ec82f6beee9a34fb675720cbb 100644 (file)
@@ -358,7 +358,7 @@ std::vector<int> qmmmAtomIndices(const t_inputrec &ir, const gmx_mtop_t &mtop)
     std::vector<int>    qmmmAtoms;
     for (int i = 0; i < numQmmmGroups; i++)
     {
-        for (const AtomProxy &atomP : AtomRange(mtop))
+        for (const AtomProxy atomP : AtomRange(mtop))
         {
             int index = atomP.globalAtomNumber();
             if (getGroupType(groups, egcQMMM, index) == i)