Bulk change to const ref for mtop
[alexxy/gromacs.git] / src / gromacs / tools / make_ndx.cpp
index 34ecf8179847b002e30cef56fc4f7724f5753521..3f8dbe2aad8234783c3824b80e090acd81b61847 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
  * Copyright (c) 2012,2013,2014,2015,2016 by the GROMACS development team.
- * Copyright (c) 2017,2018,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2017,2018,2019,2020,2021, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -1565,7 +1565,7 @@ int gmx_make_ndx(int argc, char* argv[])
         bool haveFullTopology = false;
         fprintf(stderr, "\nReading structure file\n");
         readConfAndTopology(stxfile, &haveFullTopology, &mtop, &pbcType, &x, &v, box);
-        atoms = gmx_mtop_global_atoms(&mtop);
+        atoms = gmx_mtop_global_atoms(mtop);
         if (atoms.pdbinfo == nullptr)
         {
             snew(atoms.pdbinfo, atoms.nr);