Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / gmxana / fitahx.cpp
index 780d82ee1ecec01f7a362af753dfc668dc904ab8..dc6f581d074bbb1ac991b8698e73d3e4374d4de8 100644 (file)
@@ -3,7 +3,7 @@
  *
  * 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.
@@ -76,8 +76,8 @@ real fit_ahx(int nres, t_bb bb[], int natoms, int nall, int allindex[],
              rvec x[], int nca,
              int caindex[], gmx_bool bFit)
 {
-    static rvec *xref = NULL;
-    static real *mass = NULL;
+    static rvec *xref = nullptr;
+    static real *mass = nullptr;
     const  real  d    = 0.15;  /* Rise per residue (nm)    */
     const  real  tw   = 1.745; /* Twist per residue (rad)  */
     const  real  rad  = 0.23;  /* Radius of the helix (nm) */
@@ -90,7 +90,7 @@ real fit_ahx(int nres, t_bb bb[], int natoms, int nall, int allindex[],
         gmx_fatal(FARGS, "Need at least 3 Calphas to fit to, (now %d)...\n", nca);
     }
 
-    if (xref == NULL)
+    if (xref == nullptr)
     {
         snew(xref, natoms);
         snew(mass, natoms);