Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / programs / view / nmol.cpp
index f06896d2c94a0b00d99bee01ff2ac61c8cb45d84..fb19996a83b5192468d0d15ae2c23b721d02dd70 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2013, 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.
@@ -442,7 +442,7 @@ static void draw_box(t_x11 *x11, Window w, t_3dview *view, matrix box,
         { 4, 5 }, { 5, 6 }, { 6, 7 }, { 7, 4 },
         { 0, 4 }, { 1, 5 }, { 2, 6 }, { 3, 7 }
     };
-    static int *edge = NULL;
+    static int *edge = nullptr;
     int         i, j, k, i0, i1;
     rvec        corner[NCUCEDGE], box_center;
     vec4        x4;
@@ -452,7 +452,7 @@ static void draw_box(t_x11 *x11, Window w, t_3dview *view, matrix box,
     if (boxtype == esbTrunc)
     {
         calc_compact_unitcell_vertices(view->ecenter, box, corner);
-        if (edge == NULL)
+        if (edge == nullptr)
         {
             edge = compact_unitcell_edges();
         }