diff options
author | Barnabás Pőcze <barnabas.pocze@ideasonboard.com> | 2025-03-19 16:36:36 +0100 |
---|---|---|
committer | Barnabás Pőcze <barnabas.pocze@ideasonboard.com> | 2025-04-01 12:58:45 +0200 |
commit | 7dd548f678bfcac435ae0f790c33f99b6fb2c5c4 (patch) | |
tree | 449325881d1a88483506693d5afd493d7f22bf20 /include/meson.build | |
parent | 37283b68eacbcb0a234c1bd21eedaa22323240b8 (diff) |
libcamera: base: object: Forward arguments when invoking
Use `std::forward()` to forward the received arguments to enable the
potential use of move constructors instead of copy constructors.
Commit 0eacde623bb0 ("libcamera: object: Avoid argument copies in invokeMethod()")
added the forwarding references to `invokeMethod()` but it did not add the
appropriate `std::forward()` calls, so copying could still take place
even if not necessary.
Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include/meson.build')
0 files changed, 0 insertions, 0 deletions