Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / programs / view / xutil.cpp
index 8bbc3b358feed5f9f09b7fbf297ad9fb07b7bca0..2c53b3e78508953665f28840446ce925e1130a69 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, 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.
@@ -145,7 +145,7 @@ void TextInRect(t_x11 *x11, Drawable win,
                 const char *s, int x, int y, int width, int height,
                 eXPos eX, eYPos eY)
 {
-    SpecialTextInRect(x11, NULL, win, s, x, y, width, height, eX, eY);
+    SpecialTextInRect(x11, nullptr, win, s, x, y, width, height, eX, eY);
 }
 
 void TextInWin(t_x11 *x11, t_windata *win,
@@ -171,7 +171,7 @@ void InitWin(t_windata *win, int x0, int y0, int w, int h, int bw, const char *t
     }
     else
     {
-        win->text = NULL;
+        win->text = nullptr;
     }
 #ifdef DEBUG
     std::printf("%s: %d x %d at %d, %d\n", text, w, h, x0, y0);
@@ -255,7 +255,7 @@ typedef struct t_mpos {
     struct t_mpos *prev;
 } t_mpos;
 
-static t_mpos *mpos = NULL;
+static t_mpos *mpos = nullptr;
 
 void PushMouse(Display *disp, Window dest, int x, int y)
 {