Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / trajectoryanalysis / modules / surfacearea.cpp
index 00aa76f12f5a800dd5b0358cb719314bb7d206b6..a3801082683f686731cadd8dcdf34aa491461aa8 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2007, 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.
@@ -574,7 +574,7 @@ nsc_dclm_pbc(const rvec *coords, const ConstArrayRef<real> &radius, int nat,
         return;
     }
     real        area = 0.0, vol = 0.0;
-    real       *dots = NULL, *atom_area = NULL;
+    real       *dots = nullptr, *atom_area = nullptr;
     int         lfnr = 0, maxdots = 0;
     if (mode & FLAG_VOLUME)
     {
@@ -806,7 +806,7 @@ void SurfaceAreaCalculator::calculate(
 {
     flags |= impl_->flags_;
     *area  = 0;
-    if (volume == NULL)
+    if (volume == nullptr)
     {
         flags &= ~FLAG_VOLUME;
     }
@@ -814,23 +814,23 @@ void SurfaceAreaCalculator::calculate(
     {
         *volume = 0;
     }
-    if (at_area == NULL)
+    if (at_area == nullptr)
     {
         flags &= ~FLAG_ATOM_AREA;
     }
     else
     {
-        *at_area = NULL;
+        *at_area = nullptr;
     }
-    if (lidots == NULL)
+    if (lidots == nullptr)
     {
         flags &= ~FLAG_DOTS;
     }
     else
     {
-        *lidots = NULL;
+        *lidots = nullptr;
     }
-    if (n_dots == NULL)
+    if (n_dots == nullptr)
     {
         flags &= ~FLAG_DOTS;
     }