From ab8db44efb09c54c402d027bbf980b0249958429 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 13 Apr 2021 00:41:09 +0300 Subject: libcamera: signal: Fix return value template type of BoundMethodMember The BoundMethodMember instance created in Signal::connect() for receivers inheriting from the Object class incorrectly sets the return type to void instead of R. This doesn't cause any functional issue as the return type is ignored anyway for signals, but should be fixed nonetheless. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- include/libcamera/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/libcamera/signal.h b/include/libcamera/signal.h index 5bcd7a77..3233529a 100644 --- a/include/libcamera/signal.h +++ b/include/libcamera/signal.h @@ -49,7 +49,7 @@ public: ConnectionType type = ConnectionTypeAuto) { Object *object = static_cast(obj); - SignalBase::connect(new BoundMethodMember(obj, object, func, type)); + SignalBase::connect(new BoundMethodMember(obj, object, func, type)); } template::value> * = nullptr> -- cgit v1.2.1