summaryrefslogtreecommitdiff
path: root/COPYING.rst
diff options
context:
space:
mode:
authorBarnabás Pőcze <pobrn@protonmail.com>2025-01-13 13:31:54 +0100
committerBarnabás Pőcze <pobrn@protonmail.com>2025-02-27 17:29:28 +0100
commitb1b99f4d662814e4ec8342b1836611760b8c9af6 (patch)
tree3616755566a84493e6157d2e95704b026f52abfd /COPYING.rst
parent0fc00eacdb699de78af640a2d2811fa7cb9c5c3d (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 'COPYING.rst')
0 files changed, 0 insertions, 0 deletions