Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / topology / mtop_lookup.h
index 6a8b69fe4752d2d8b171fc9741f8cbfcacd0a2f4..1d892ab1790233ef33f4b2b51e3940ff84ea3ebb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2016, by the GROMACS development team, led by
+ * Copyright (c) 2016,2017, 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.
@@ -129,7 +129,7 @@ mtopGetAtomParameters(const gmx_mtop_t  *mtop,
 {
     int atomIndexInMolecule;
     mtopGetMolblockIndex(mtop, globalAtomIndex, moleculeBlock,
-                         NULL, &atomIndexInMolecule);
+                         nullptr, &atomIndexInMolecule);
     const gmx_moltype_t &moltype = mtop->moltype[mtop->molblock[*moleculeBlock].type];
     return moltype.atoms.atom[atomIndexInMolecule];
 }
@@ -236,7 +236,7 @@ mtopGetResidueInfo(const gmx_mtop_t  *mtop,
 {
     int atomIndexInMolecule;
     mtopGetMolblockIndex(mtop, globalAtomIndex, moleculeBlock,
-                         NULL, &atomIndexInMolecule);
+                         nullptr, &atomIndexInMolecule);
     const gmx_moltype_t &moltype = mtop->moltype[mtop->molblock[*moleculeBlock].type];
     const int            resind  = moltype.atoms.atom[atomIndexInMolecule].resind;
     return moltype.atoms.resinfo[resind];
@@ -261,7 +261,7 @@ mtopGetAtomPdbInfo(const gmx_mtop_t  *mtop,
 {
     int atomIndexInMolecule;
     mtopGetMolblockIndex(mtop, globalAtomIndex, moleculeBlock,
-                         NULL, &atomIndexInMolecule);
+                         nullptr, &atomIndexInMolecule);
     const gmx_moltype_t &moltype = mtop->moltype[mtop->molblock[*moleculeBlock].type];
     GMX_ASSERT(moltype.atoms.havePdbInfo, "PDB information not present when requested");
     return moltype.atoms.pdbinfo[atomIndexInMolecule];