summaryrefslogtreecommitdiffstats
path: root/engine/include
diff options
context:
space:
mode:
Diffstat (limited to 'engine/include')
-rw-r--r--engine/include/core/signal.hpp2
-rw-r--r--engine/include/core/task.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engine/include/core/signal.hpp b/engine/include/core/signal.hpp
index 606d61a..e21b73e 100644
--- a/engine/include/core/signal.hpp
+++ b/engine/include/core/signal.hpp
@@ -124,7 +124,7 @@ namespace flat
const std::initializer_list<std::string>& filters = {});
template<typename R, typename T>
- inline listener::ptr connect(R T::*mf, T& obj,
+ inline listener::ptr connect(R T::*mf, T* obj,
const std::initializer_list<std::string>& filters = {})
{
using namespace std::placeholders;
diff --git a/engine/include/core/task.hpp b/engine/include/core/task.hpp
index 49e156f..0840e08 100644
--- a/engine/include/core/task.hpp
+++ b/engine/include/core/task.hpp
@@ -38,7 +38,7 @@ namespace flat {
/// add a task methods not owned by the job object (weak_ptr),
/// this allows to make the task die when the owner object goes out of scope
template<typename R, typename T>
- inline std::shared_ptr<task> delegate_task(R T::*mf, T& obj, priority_t p = priority_t::none) {
+ inline std::shared_ptr<task> delegate_task(R T::*mf, T* obj, priority_t p = priority_t::none) {
return delegate_task(std::bind(mf, obj), p);
}