diff options
| author | Yi Kong <yikong@google.com> | 2018-07-16 18:11:34 -0700 |
|---|---|---|
| committer | Yi Kong <yikong@google.com> | 2018-07-16 18:11:34 -0700 |
| commit | e1731a4f2e05f1abb4a45602067708851eaf1e14 (patch) | |
| tree | 339c0ce3d3de7d6f5e0fb9bdada9b6210d1d470f /libutils/RefBase.cpp | |
| parent | 895acebe946e34d2626716c5c4d7d7f2cc28c39d (diff) | |
| download | system_core-e1731a4f2e05f1abb4a45602067708851eaf1e14.tar.gz system_core-e1731a4f2e05f1abb4a45602067708851eaf1e14.tar.bz2 system_core-e1731a4f2e05f1abb4a45602067708851eaf1e14.zip | |
[libutils] Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning.
Test: m
Bug: 68236239
Change-Id: I5e89ec8c42151875439d2656475a8739ab9cb7dc
Diffstat (limited to 'libutils/RefBase.cpp')
| -rw-r--r-- | libutils/RefBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libutils/RefBase.cpp b/libutils/RefBase.cpp index 8bccb0f5c..90748501d 100644 --- a/libutils/RefBase.cpp +++ b/libutils/RefBase.cpp @@ -712,7 +712,7 @@ RefBase::~RefBase() delete mRefs; } // For debugging purposes, clear mRefs. Ineffective against outstanding wp's. - const_cast<weakref_impl*&>(mRefs) = NULL; + const_cast<weakref_impl*&>(mRefs) = nullptr; } void RefBase::extendObjectLifetime(int32_t mode) |
