diff options
author | Barnabás Pőcze <pobrn@protonmail.com> | 2025-01-21 18:47:49 +0100 |
---|---|---|
committer | Barnabás Pőcze <pobrn@protonmail.com> | 2025-02-27 11:30:23 +0100 |
commit | 24c2caa1c1b39d0bb17dfaca0aedf9b8e91b5e26 (patch) | |
tree | a426f5f59c2670e03c8ee9b040226f07c17ef7f0 /src/v4l2/v4l2_compat.cpp | |
parent | 16bcc5a3e47e445879fa515b795da8165e76fd99 (diff) |
libcamera: base: log: Use `std::string_view` to avoid some copies
Use `std::string_view` to avoid some largely unnecessary copies, and
to make string comparisong potentially faster by eliminating repeated
`strlen()` calls.
Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Diffstat (limited to 'src/v4l2/v4l2_compat.cpp')
0 files changed, 0 insertions, 0 deletions