summaryrefslogtreecommitdiff
path: root/include/libcamera/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libcamera/object.h')
-rw-r--r--include/libcamera/object.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libcamera/object.h b/include/libcamera/object.h
index c45165de..586c2cf6 100644
--- a/include/libcamera/object.h
+++ b/include/libcamera/object.h
@@ -29,13 +29,13 @@ public:
void postMessage(std::unique_ptr<Message> msg);
- template<typename T, typename... FuncArgs, typename... Args,
+ template<typename T, typename R, typename... FuncArgs, typename... Args,
typename std::enable_if<std::is_base_of<Object, T>::value>::type * = nullptr>
- void invokeMethod(void (T::*func)(FuncArgs...), ConnectionType type,
+ void invokeMethod(R (T::*func)(FuncArgs...), ConnectionType type,
Args... args)
{
T *obj = static_cast<T *>(this);
- auto *method = new BoundMemberMethod<T, FuncArgs...>(obj, this, func, type);
+ auto *method = new BoundMemberMethod<T, R, FuncArgs...>(obj, this, func, type);
method->activate(args..., true);
}