Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / fileio / espio.cpp
index 8ea7da89053e527b8c8b41874666f7a55a2cea1c..f7ee9fea2c4bbec7d11dc3c2c389581e73f1d8dc 100644 (file)
@@ -2,7 +2,7 @@
  * This file is part of the GROMACS molecular simulation package.
  *
  * Copyright (c) 2005, 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.
@@ -263,7 +263,7 @@ void gmx_espresso_read_conf(const char *infile,
                                 break;
                             case espTYPE:
                                 r                   = get_espresso_word(fp, word);
-                                atoms->atom[i].type = std::strtol(word, NULL, 10);
+                                atoms->atom[i].type = std::strtol(word, nullptr, 10);
                                 break;
                             case espQ:
                                 r = get_espresso_word(fp, word);
@@ -287,7 +287,7 @@ void gmx_espresso_read_conf(const char *infile,
                                 break;
                             case espMOLECULE:
                                 r     = get_espresso_word(fp, word);
-                                molnr = std::strtol(word, NULL, 10);
+                                molnr = std::strtol(word, nullptr, 10);
                                 if (i == 0 ||
                                     atoms->resinfo[atoms->atom[i-1].resind].nr != molnr)
                                 {