diff options
| author | Mark Salyzyn <salyzyn@google.com> | 2017-03-01 08:30:06 -0800 |
|---|---|---|
| committer | Mark Salyzyn <salyzyn@google.com> | 2017-03-01 08:48:04 -0800 |
| commit | 5e0018b7eea6d24fe5fea412f3b0ed9c4db80ba5 (patch) | |
| tree | 43efe5dad9ef1f849cab67581a0d27c3447b8337 /libutils/Unicode.cpp | |
| parent | c887847dca4c2a44efea72d9deec03a5d443c65e (diff) | |
liblogcat: replace NULL with nullptr
- Replace all NULL, macro defined to 0, with nullptr. nullptr is a
keyword of type nullptr_t, with a value of (nullptr_t)0, a pointer
type of sizeof(void*) that can not confusingly promote to an int.
- Replace all boolean evaluations of values against 0, NULL, and
nullptr with direct, ! or !! as appropriate.
- Note that thread_stopped should be semaphore, defer that to
a non-code-quality improvement patch.
- Check for null context in android_logcat_destroy.
- Run clang-format to realign format with setting.
Test: compile and gTest logcat-unit-tests
Bug: 35326290
Change-Id: Iaf729cd7899c6cece78431536ed325604f0e353f
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions
