diff options
| author | 2018-07-17 13:48:38 -0700 | |
|---|---|---|
| committer | 2018-07-17 13:49:37 -0700 | |
| commit | 9b14ac68219c997b5e253cd59f215b9c81cd6e9f (patch) | |
| tree | b67e6306fa2e4732de80f4ef3ee42cc72aaff8a2 /services/inputflinger/InputWindow.cpp | |
| parent | dc3b0ab2efb5e37df35720b7f6ffc14c4670e067 (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/InputWindow.cpp')
| -rw-r--r-- | services/inputflinger/InputWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/inputflinger/InputWindow.cpp b/services/inputflinger/InputWindow.cpp index 3ae7972779..0d1dfddb07 100644 --- a/services/inputflinger/InputWindow.cpp +++ b/services/inputflinger/InputWindow.cpp @@ -66,7 +66,7 @@ bool InputWindowInfo::overlaps(const InputWindowInfo* other) const { // --- InputWindowHandle --- InputWindowHandle::InputWindowHandle(const sp<InputApplicationHandle>& inputApplicationHandle) : - inputApplicationHandle(inputApplicationHandle), mInfo(NULL) { + inputApplicationHandle(inputApplicationHandle), mInfo(nullptr) { } InputWindowHandle::~InputWindowHandle() { @@ -76,7 +76,7 @@ InputWindowHandle::~InputWindowHandle() { void InputWindowHandle::releaseInfo() { if (mInfo) { delete mInfo; - mInfo = NULL; + mInfo = nullptr; } } |