Bulk change to const ref for mtop
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / genconf.cpp
index 8f80c794af3abc7f95e5c6e59a412e41c9db102e..d660eb37fad512c241bd7fe58e59d0a41e572573 100644 (file)
@@ -180,7 +180,7 @@ int gmx_genconf(int argc, char* argv[])
     gmx_mtop_t mtop;
     bool       haveTop = false;
     readConfAndTopology(opt2fn("-f", NFILE, fnm), &haveTop, &mtop, &pbcType, &x, &v, box);
-    t_atoms atoms = gmx_mtop_global_atoms(&mtop);
+    t_atoms atoms = gmx_mtop_global_atoms(mtop);
     natoms        = atoms.nr;
     nres          = atoms.nres; /* nr of residues in one element? */
     /* make space for all the atoms */