libcamera: bound_method: Fix type of pack for void methods
The BoundMethodPack used by the void BoundMethodArgs variant incorrectly specified the template argument as void * instead of void. This causes no functional problem, but results in space for an unused void * return value being reserved. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Fricke <sebastian.fricke@posteo.net> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -174,7 +174,7 @@ template<typename T, typename... Args>
|
||||
class BoundMethodMember<T, void, Args...> : public BoundMethodArgs<void, Args...>
|
||||
{
|
||||
public:
|
||||
using PackType = typename BoundMethodArgs<void *, Args...>::PackType;
|
||||
using PackType = typename BoundMethodArgs<void, Args...>::PackType;
|
||||
|
||||
BoundMethodMember(T *obj, Object *object, void (T::*func)(Args...),
|
||||
ConnectionType type = ConnectionTypeAuto)
|
||||
|
||||
Reference in New Issue
Block a user