/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2009,2010,2011,2012,2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2009,2010,2011,2012,2013,2014,2015,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.
"Should not be called more than once");
posMass_.reserve(posCount());
posCharge_.reserve(posCount());
- if (top == NULL)
+ if (top == nullptr)
{
posMass_.resize(posCount(), 1.0);
posCharge_.resize(posCount(), 0.0);
void
SelectionData::refreshMassesAndCharges(const gmx_mtop_t *top)
{
- if (top != NULL && isDynamic() && !hasFlag(efSelection_DynamicMask))
+ if (top != nullptr && isDynamic() && !hasFlag(efSelection_DynamicMask))
{
computeMassesAndCharges(top, rawPositions_, &posMass_, &posCharge_);
}