Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / utility / gmxregex.cpp
index 87ccafa9b1be695a07bbb8310d7a8fbe8ff9bab2..a15a71b6db7cf0dadd4942c4f933a40195ebc334 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2012,2014,2015, by the GROMACS development team, led by
+ * Copyright (c) 2012,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.
@@ -88,7 +88,7 @@ class Regex::Impl
 
         bool match(const char *value) const
         {
-            int rc = regexec(&regex_, value, 0, NULL, 0);
+            int rc = regexec(&regex_, value, 0, nullptr, 0);
             if (rc != 0 && rc != REG_NOMATCH)
             {
                 // TODO: Handle errors.