diff options
author | Barnabás Pőcze <pobrn@protonmail.com> | 2022-11-26 23:42:27 +0000 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-11-28 16:11:20 +0200 |
commit | 1cd7646f970d90f3c8bec02259a2415c5cf89016 (patch) | |
tree | 6e7187b349021cdddf2dfa1ef334dfb60298e8ec /src/apps/lc-compliance | |
parent | b35f04b3c19487de903b67340fcfb801557295d3 (diff) |
libcamera: framebuffer_allocator: Avoid double map lookup
Use `try_emplace()` on the map instead of `count()`
and `operator[]` to avoid walking the tree twice.
Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/apps/lc-compliance')
0 files changed, 0 insertions, 0 deletions