aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/stubs/stringpiece.cc
diff options
context:
space:
mode:
authorDhruv <dhruv.batra@hotmail.com>2018-08-06 23:10:16 +0800
committerDhruv <dhruv.batra@hotmail.com>2018-08-07 08:03:57 +0800
commit526b350199e604b62daaee9febc5d8a8d593a010 (patch)
treeb5b0408408979675429fab071c5ce1cae1313a54 /src/google/protobuf/stubs/stringpiece.cc
parente9a5412afcb5035c02136ba65210bf2cb69d9ab5 (diff)
downloadprotobuf-526b350199e604b62daaee9febc5d8a8d593a010.tar.gz
protobuf-526b350199e604b62daaee9febc5d8a8d593a010.tar.bz2
protobuf-526b350199e604b62daaee9febc5d8a8d593a010.zip
4593 Replace all occurrences of "NULL" to nullptr in src/google/protobug/stubs
Diffstat (limited to 'src/google/protobuf/stubs/stringpiece.cc')
-rw-r--r--src/google/protobuf/stubs/stringpiece.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/stubs/stringpiece.cc b/src/google/protobuf/stubs/stringpiece.cc
index 989474b7..96a7d3da 100644
--- a/src/google/protobuf/stubs/stringpiece.cc
+++ b/src/google/protobuf/stubs/stringpiece.cc
@@ -115,7 +115,7 @@ stringpiece_ssize_type StringPiece::find(char c, size_type pos) const {
}
const char* result = static_cast<const char*>(
memchr(ptr_ + pos, c, length_ - pos));
- return result != NULL ? result - ptr_ : npos;
+ return result != nullptr ? result - ptr_ : npos;
}
stringpiece_ssize_type StringPiece::rfind(StringPiece s, size_type pos) const {