Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / fileio / warninp.cpp
index a91f300a2e009ab9839c31fa9dd54acc3bd98829..27f049114c54b001d00257823f1b0caef67a07ba 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.
@@ -73,7 +73,7 @@ warninp_t init_warning(gmx_bool bAllowWarnings, int maxwarning)
 
 void set_warning_line(warninp_t wi, const char *s, int line)
 {
-    if (s != NULL)
+    if (s != nullptr)
     {
         std::strcpy(wi->filenm, s);
     }
@@ -96,7 +96,7 @@ static void low_warning(warninp_t wi, const char *wtype, int n, const char *s)
     char *temp, *temp2;
     int   i;
 
-    if (s == NULL)
+    if (s == nullptr)
     {
         s = "Empty error message.";
     }