commit | 87d465c19c1a9d4d3b997fce7d36a40b3bf1ca4e | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Tue Jul 24 01:14:06 2018 -0700 |
committer | Yi Kong <yikong@google.com> | Tue Jul 24 01:14:06 2018 -0700 |
tree | d0207965de17eff0dd190fff6bdf6724e6321455 | |
parent | 8b24732c844209477834f3d5674629ad03d700b1 [diff] [blame] |
[binder] Modernize codebase by replacing NULL with nullptr Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: Ibecc3b84c4e8c42cf65a0480ceb7c7bf1077866c
diff --git a/libs/binder/tests/binderLibTest.cpp b/libs/binder/tests/binderLibTest.cpp index f23ac52..73c2eba 100644 --- a/libs/binder/tests/binderLibTest.cpp +++ b/libs/binder/tests/binderLibTest.cpp
@@ -1189,7 +1189,7 @@ return ret; } buf = data.readInplace(size); - if (buf == NULL) { + if (buf == nullptr) { return BAD_VALUE; } ret = write(fd.get(), buf, size);