summaryrefslogtreecommitdiff
path: root/libs/gui/BufferItemConsumer.cpp
diff options
context:
space:
mode:
author Yi Kong <yikong@google.com> 2018-06-07 23:46:04 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-06-07 23:46:04 +0000
commita160f5a70ffba3715c8a92f4f469922d59635356 (patch)
tree627f17cbd47a952696913884b21d100cc15c855b /libs/gui/BufferItemConsumer.cpp
parent978e43d7a14f75a0d2d32517d906e173de48110b (diff)
parent9c804c47fc86a45ac517e9c91d3c986cb9d315dd (diff)
Merge "Replace NULL/0 with nullptr"
Diffstat (limited to 'libs/gui/BufferItemConsumer.cpp')
-rw-r--r--libs/gui/BufferItemConsumer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/BufferItemConsumer.cpp b/libs/gui/BufferItemConsumer.cpp
index da4295609b..3aa4e449cc 100644
--- a/libs/gui/BufferItemConsumer.cpp
+++ b/libs/gui/BufferItemConsumer.cpp
@@ -114,7 +114,7 @@ status_t BufferItemConsumer::releaseBuffer(const BufferItem &item,
void BufferItemConsumer::freeBufferLocked(int slotIndex) {
sp<BufferFreedListener> listener = mBufferFreedListener.promote();
- if (listener != NULL && mSlots[slotIndex].mGraphicBuffer != NULL) {
+ if (listener != nullptr && mSlots[slotIndex].mGraphicBuffer != nullptr) {
// Fire callback if we have a listener registered and the buffer being freed is valid.
BI_LOGV("actually calling onBufferFreed");
listener->onBufferFreed(mSlots[slotIndex].mGraphicBuffer);