From 9b2544d3df481bc9dd0795fb645b544ba6484216 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 7 Apr 2021 16:52:46 +0300 Subject: 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 Reviewed-by: Sebastian Fricke Reviewed-by: Kieran Bingham --- include/libcamera/bound_method.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/libcamera/bound_method.h b/include/libcamera/bound_method.h index 95a95653..f216e3b5 100644 --- a/include/libcamera/bound_method.h +++ b/include/libcamera/bound_method.h @@ -174,7 +174,7 @@ template class BoundMethodMember : public BoundMethodArgs { public: - using PackType = typename BoundMethodArgs::PackType; + using PackType = typename BoundMethodArgs::PackType; BoundMethodMember(T *obj, Object *object, void (T::*func)(Args...), ConnectionType type = ConnectionTypeAuto) -- cgit v1.2.1