*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014,2015, by the GROMACS development team, led by
+ * Copyright (c) 2013,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.
}
else
{
- xl[n].res = NULL;
+ xl[n].res = nullptr;
}
/* Replace underscores in the string by spaces */
- while ((_ptr = strchr(abuf, '_')) != 0)
+ while ((_ptr = strchr(abuf, '_')) != nullptr)
{
*_ptr = ' ';
}
for (i = 0; (i < nxlate); i++)
{
sfree(xlatom[i].filebase);
- if (xlatom[i].res != NULL)
+ if (xlatom[i].res != nullptr)
{
sfree(xlatom[i].res);
}
gmx_bool bStartTerm, bEndTerm;
nxlate = 0;
- xlatom = NULL;
- if (xlfile != NULL)
+ xlatom = nullptr;
+ if (xlfile != nullptr)
{
fp = libopen(xlfile);
get_xlatoms(xlfile, fp, &nxlate, &xlatom);
for (i = 0; (i < nxlate) && !bRenamed; i++)
{
/* Check if the base file name of the rtp and arn entry match */
- if (restp == NULL ||
+ if (restp == nullptr ||
gmx_strcasecmp(restp[resind].filebase, xlatom[i].filebase) == 0)
{
/* Match the residue name */
- bMatch = (xlatom[i].res == NULL ||
+ bMatch = (xlatom[i].res == nullptr ||
(gmx_strcasecmp("protein-nterm", xlatom[i].res) == 0 &&
gmx_residuetype_is_protein(rt, rnm) && bStartTerm) ||
(gmx_strcasecmp("protein-cterm", xlatom[i].res) == 0 &&