diff options
author | Barnabás Pőcze <pobrn@protonmail.com> | 2025-01-13 13:31:54 +0100 |
---|---|---|
committer | Barnabás Pőcze <pobrn@protonmail.com> | 2025-02-27 17:29:28 +0100 |
commit | b1b99f4d662814e4ec8342b1836611760b8c9af6 (patch) | |
tree | 3616755566a84493e6157d2e95704b026f52abfd /src/apps/cam | |
parent | 0fc00eacdb699de78af640a2d2811fa7cb9c5c3d (diff) |
apps: common: event_loop: Take callbacks by rvalue ref
Using a const lvalue reference to `std::function<>` is not ideal
because it forces a copy to happen. Use an rvalue reference and
`std::move()` to avoid that.
Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'src/apps/cam')
0 files changed, 0 insertions, 0 deletions