Bulk change to const ref for mtop
[alexxy/gromacs.git] / src / gromacs / coordinateio / coordinatefile.cpp
index 2899ed0db8313c1cd65ca89b550aba50b219571c..549e37693e5547f67a3053df764c271e0b7a6d26 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 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.
@@ -363,7 +363,7 @@ static t_trxstatus* openTNG(const std::string& name, const Selection& sel, const
                                                 nullptr,
                                                 mtop->natoms,
                                                 mtop,
-                                                get_atom_index(mtop),
+                                                get_atom_index(*mtop),
                                                 "System");
     }
 }