summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputApplication.cpp
diff options
context:
space:
mode:
author Yi Kong <yikong@google.com> 2018-07-17 13:48:38 -0700
committer Yi Kong <yikong@google.com> 2018-07-17 13:49:37 -0700
commit9b14ac68219c997b5e253cd59f215b9c81cd6e9f (patch)
treeb67e6306fa2e4732de80f4ef3ee42cc72aaff8a2 /services/inputflinger/InputApplication.cpp
parentdc3b0ab2efb5e37df35720b7f6ffc14c4670e067 (diff)
[inputflinger] Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I0d06ab2a187e72bd893900355edad97caa684c7a
Diffstat (limited to 'services/inputflinger/InputApplication.cpp')
-rw-r--r--services/inputflinger/InputApplication.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/inputflinger/InputApplication.cpp b/services/inputflinger/InputApplication.cpp
index 9e90631840..c56dfe6879 100644
--- a/services/inputflinger/InputApplication.cpp
+++ b/services/inputflinger/InputApplication.cpp
@@ -25,7 +25,7 @@ namespace android {
// --- InputApplicationHandle ---
InputApplicationHandle::InputApplicationHandle() :
- mInfo(NULL) {
+ mInfo(nullptr) {
}
InputApplicationHandle::~InputApplicationHandle() {
@@ -35,7 +35,7 @@ InputApplicationHandle::~InputApplicationHandle() {
void InputApplicationHandle::releaseInfo() {
if (mInfo) {
delete mInfo;
- mInfo = NULL;
+ mInfo = nullptr;
}
}