diff options
Diffstat (limited to 'libs/gui/bufferqueue')
| -rw-r--r-- | libs/gui/bufferqueue/1.0/H2BGraphicBufferProducer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/gui/bufferqueue/1.0/H2BGraphicBufferProducer.cpp b/libs/gui/bufferqueue/1.0/H2BGraphicBufferProducer.cpp index 8af1a67f12..e64ba9bcdd 100644 --- a/libs/gui/bufferqueue/1.0/H2BGraphicBufferProducer.cpp +++ b/libs/gui/bufferqueue/1.0/H2BGraphicBufferProducer.cpp @@ -901,7 +901,7 @@ inline bool convertTo( int const* constFds = static_cast<int const*>(baseFds.get()); numFds = baseNumFds; if (l->unflatten(constBuffer, size, constFds, numFds) != NO_ERROR) { - for (auto nhA : nhAA) { + for (const auto& nhA : nhAA) { for (auto nh : nhA) { if (nh != nullptr) { native_handle_close(nh); @@ -912,8 +912,8 @@ inline bool convertTo( return false; } - for (auto nhA : nhAA) { - for (auto nh : nhA) { + for (const auto& nhA : nhAA) { + for (const auto& nh : nhA) { if (nh != nullptr) { native_handle_delete(nh); } |