Tidy: modernize-use-nullptr
[alexxy/gromacs.git] / src / gromacs / utility / tests / stringutil.cpp
index 08a844d53bca90124447e143d1aa9edddb8e1ecb..e3c5d87ed0e5aa511d83a245c336ecb149192cf9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2012,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2012,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.
@@ -84,7 +84,7 @@ TEST(StringUtilityTest, StartsWith)
 TEST(StringUtilityTest, EndsWith)
 {
     EXPECT_TRUE(gmx::endsWith("foobar", "bar"));
-    EXPECT_TRUE(gmx::endsWith("foobar", NULL));
+    EXPECT_TRUE(gmx::endsWith("foobar", nullptr));
     EXPECT_TRUE(gmx::endsWith("foobar", ""));
     EXPECT_TRUE(gmx::endsWith("", ""));
     EXPECT_FALSE(gmx::endsWith("", "foobar"));
@@ -96,7 +96,7 @@ TEST(StringUtilityTest, EndsWith)
 TEST(StringUtilityTest, StripSuffixIfPresent)
 {
     EXPECT_EQ("foo", gmx::stripSuffixIfPresent("foobar", "bar"));
-    EXPECT_EQ("foobar", gmx::stripSuffixIfPresent("foobar", NULL));
+    EXPECT_EQ("foobar", gmx::stripSuffixIfPresent("foobar", nullptr));
     EXPECT_EQ("foobar", gmx::stripSuffixIfPresent("foobar", ""));
     EXPECT_EQ("foobar", gmx::stripSuffixIfPresent("foobar", "bbar"));
     EXPECT_EQ("foobar", gmx::stripSuffixIfPresent("foobar", "barr"));