pipeline: rpi: Use structured bindings in range-based for loop
Simplify a range-based for loop by replacing an iterator with structure bindings. This makes the code easier to read. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
This commit is contained in:
@@ -882,10 +882,10 @@ void PipelineHandlerBase::mapBuffers(Camera *camera, const BufferMap &buffers, u
|
||||
* This will allow us to identify buffers passed between the pipeline
|
||||
* handler and the IPA.
|
||||
*/
|
||||
for (auto const &it : buffers) {
|
||||
bufferIds.push_back(IPABuffer(mask | it.first,
|
||||
it.second.buffer->planes()));
|
||||
data->bufferIds_.insert(mask | it.first);
|
||||
for (auto const &[id, buffer] : buffers) {
|
||||
bufferIds.push_back(IPABuffer(mask | id,
|
||||
buffer.buffer->planes()));
|
||||
data->bufferIds_.insert(mask | id);
|
||||
}
|
||||
|
||||
data->ipa_->mapBuffers(bufferIds);
|
||||
|
||||
Reference in New Issue
Block a user