Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / utility / errorformat.cpp
index 2c8b21fb2b56191361b6bc62a4360a1a166a3059..1fc9d8b9cb2325d67af52979462090bd0faf3123 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2010,2011,2012,2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2010,2011,2012,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.
@@ -76,12 +76,12 @@ void printFatalErrorHeader(FILE *fp, const char *title,
 
     std::fprintf(fp, "\n-------------------------------------------------------\n");
     std::fprintf(fp, "Program:     %s, version %s\n", programName, gmx_version());
-    if (file != NULL)
+    if (file != nullptr)
     {
         std::fprintf(fp, "Source file: %s (line %d)\n",
                      Path::stripSourcePrefix(file), line);
     }
-    if (func != NULL)
+    if (func != nullptr)
     {
         std::fprintf(fp, "Function:    %s\n", func);
     }