diff options
author | 2018-06-07 14:38:36 -0700 | |
---|---|---|
committer | 2018-06-07 14:38:36 -0700 | |
commit | 91635563b8a1bf7a31e4ceb439728dacb79abd76 (patch) | |
tree | 76e42555fb1da0a173a8d14a77d8679d926f53d8 /libs/binder/IAppOpsService.cpp | |
parent | fdcfb671b1a8750153ae9549c2cecf219569995a (diff) |
[binder] Replace NULL/0 with nullptr
Fixes -Wzero-as-null-pointer-constant warning.
clang-tidy -checks=modernize-use-nullptr -p compile_commands.json -fix
...
Test: m
Bug: 68236239
Change-Id: I3181bc5683796423a98b0f9b94daf30880c07bdc
Diffstat (limited to 'libs/binder/IAppOpsService.cpp')
-rw-r--r-- | libs/binder/IAppOpsService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/IAppOpsService.cpp b/libs/binder/IAppOpsService.cpp index 9c76350cbd..068664b418 100644 --- a/libs/binder/IAppOpsService.cpp +++ b/libs/binder/IAppOpsService.cpp @@ -109,7 +109,7 @@ public: data.writeStrongBinder(clientToken); remote()->transact(GET_TOKEN_TRANSACTION, data, &reply); // fail on exception - if (reply.readExceptionCode() != 0) return NULL; + if (reply.readExceptionCode() != 0) return nullptr; return reply.readStrongBinder(); } |