Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / selection / selection.cpp
index d1ec9e623c3059ad19ff8c885768acf611d43f0e..3032cf58aea60edcb8567b5c68e483e088f6078b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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.
@@ -209,7 +209,7 @@ SelectionData::initializeMassesAndCharges(const gmx_mtop_t *top)
                "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);
@@ -224,7 +224,7 @@ SelectionData::initializeMassesAndCharges(const gmx_mtop_t *top)
 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_);
     }