*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2011,2014,2015, by the GROMACS development team, led by
+ * Copyright (c) 2011,2014,2015,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.
{
if ((nt < 0) || (nt >= ga->nr))
{
- return NULL;
+ return nullptr;
}
return *(ga->atomname[nt]);
snew(ga, 1);
ga->nr = 0;
- ga->atom = NULL;
- ga->atomname = NULL;
- ga->nb = NULL;
- ga->bondatomtype = NULL;
- ga->radius = NULL;
- ga->vol = NULL;
- ga->surftens = NULL;
- ga->atomnumber = NULL;
- ga->gb_radius = NULL;
- ga->S_hct = NULL;
+ ga->atom = nullptr;
+ ga->atomname = nullptr;
+ ga->nb = nullptr;
+ ga->bondatomtype = nullptr;
+ ga->radius = nullptr;
+ ga->vol = nullptr;
+ ga->surftens = nullptr;
+ ga->atomnumber = nullptr;
+ ga->gb_radius = nullptr;
+ ga->S_hct = nullptr;
return ga;
}
{
if (strcmp(*ga->atomname[i], name) == 0)
{
- if (NULL != debug)
+ if (nullptr != debug)
{
fprintf(debug, "Trying to add atomtype %s again. Skipping it.\n", name);
}
}
/* Renumber nlist */
- nbsnew = NULL;
+ nbsnew = nullptr;
snew(nbsnew, plist[ftype].nr);
nrfp = NRFP(ftype);