summaryrefslogtreecommitdiff
path: root/libhidlcache
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2018-07-24 14:59:46 -0700
committerYi Kong <yikong@google.com>2018-07-24 14:59:46 -0700
commit277f977a8e82ba9b2438355905596f9f94ac7016 (patch)
tree9d2513890f4e210d72ce35249f9677191a03d9f9 /libhidlcache
parentdeacf14671c2f92b667a381fff9c1bc0433b2691 (diff)
downloadlibhidl-277f977a8e82ba9b2438355905596f9f94ac7016.tar.gz
Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I8cb04f9f99be029d7fef13c4c7c77aea515f3d61
Diffstat (limited to 'libhidlcache')
-rw-r--r--libhidlcache/MemoryDealer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhidlcache/MemoryDealer.cpp b/libhidlcache/MemoryDealer.cpp
index e9196a1..dea7bc7 100644
--- a/libhidlcache/MemoryDealer.cpp
+++ b/libhidlcache/MemoryDealer.cpp
@@ -240,7 +240,7 @@ SimpleBestFitAllocator::chunk_t* SimpleBestFitAllocator::dealloc(size_t start) {
return freed;
}
}
- return 0;
+ return nullptr;
}
void SimpleBestFitAllocator::dump(const char* tag) const {