Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / selection / nbsearch.h
index cbd3fdc268bd14fb0a6c6fbce909ddf8fa5597f5..8a4c3a29db93b796e170195efd0974eb1c5e9995 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, by the GROMACS development team, led by
+ * Copyright (c) 2009,2010,2011,2012,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.
@@ -109,14 +109,14 @@ class AnalysisNeighborhoodPositions
          * to methods that accept positions.
          */
         AnalysisNeighborhoodPositions(const rvec &x)
-            : count_(1), index_(-1), x_(&x), exclusionIds_(NULL), indices_(NULL)
+            : count_(1), index_(-1), x_(&x), exclusionIds_(nullptr), indices_(nullptr)
         {
         }
         /*! \brief
          * Initializes positions from an array of position vectors.
          */
         AnalysisNeighborhoodPositions(const rvec x[], int count)
-            : count_(count), index_(-1), x_(x), exclusionIds_(NULL), indices_(NULL)
+            : count_(count), index_(-1), x_(x), exclusionIds_(nullptr), indices_(nullptr)
         {
         }
         /*! \brief
@@ -124,7 +124,7 @@ class AnalysisNeighborhoodPositions
          */
         AnalysisNeighborhoodPositions(const std::vector<RVec> &x)
             : count_(x.size()), index_(-1), x_(as_rvec_array(x.data())),
-              exclusionIds_(NULL), indices_(NULL)
+              exclusionIds_(nullptr), indices_(nullptr)
         {
         }