summaryrefslogtreecommitdiff
path: root/tests/regex_test.cpp
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2018-08-02 17:31:13 -0700
committerYi Kong <yikong@google.com>2018-08-02 18:09:44 -0700
commit32bc0fcf69dfccb3726fe572833a38b01179580e (patch)
treeabca656f500087493e0997d5cf38cbcc9ec98eb8 /tests/regex_test.cpp
parent65f82092a17518080178ff7004cc6db362ebfbcd (diff)
Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I5b4123bc6709641315120a191e36cc57541349b2
Diffstat (limited to 'tests/regex_test.cpp')
-rw-r--r--tests/regex_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regex_test.cpp b/tests/regex_test.cpp
index 0e7f8dd7f..0d88261cf 100644
--- a/tests/regex_test.cpp
+++ b/tests/regex_test.cpp
@@ -23,8 +23,8 @@ TEST(regex, smoke) {
// A quick test of all the regex functions.
regex_t re;
ASSERT_EQ(0, regcomp(&re, "ab*c", 0));
- ASSERT_EQ(0, regexec(&re, "abbbc", 0, NULL, 0));
- ASSERT_EQ(REG_NOMATCH, regexec(&re, "foo", 0, NULL, 0));
+ ASSERT_EQ(0, regexec(&re, "abbbc", 0, nullptr, 0));
+ ASSERT_EQ(REG_NOMATCH, regexec(&re, "foo", 0, nullptr, 0));
char buf[80];
regerror(REG_NOMATCH, &re, buf, sizeof(buf));