Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / ewald / pme-only.cpp
index 6d8c0984357626a346079437b562ad4a3adcfcf2..66a7728b24b6d5f73b342cb249b7f0d88057347e 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,2016, by the GROMACS development team, led by
+ * Copyright (c) 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.
@@ -112,7 +112,7 @@ static void gmx_pmeonly_switch(int *npmedata, struct gmx_pme_t ***pmedata,
                                struct gmx_pme_t **pme_ret)
 {
     int               ind;
-    struct gmx_pme_t *pme = NULL;
+    struct gmx_pme_t *pme = nullptr;
 
     ind = 0;
     while (ind < *npmedata)
@@ -152,10 +152,10 @@ int gmx_pmeonly(struct gmx_pme_t *pme,
     int                ret;
     int                natoms;
     matrix             box;
-    rvec              *x_pp       = NULL, *f_pp = NULL;
-    real              *chargeA    = NULL, *chargeB = NULL;
-    real              *c6A        = NULL, *c6B = NULL;
-    real              *sigmaA     = NULL, *sigmaB = NULL;
+    rvec              *x_pp       = nullptr, *f_pp = nullptr;
+    real              *chargeA    = nullptr, *chargeB = nullptr;
+    real              *c6A        = nullptr, *c6B = nullptr;
+    real              *sigmaA     = nullptr, *sigmaB = nullptr;
     real               lambda_q   = 0;
     real               lambda_lj  = 0;
     int                maxshift_x = 0, maxshift_y = 0;