diff --git a/ext/libclementine-common/core/closure.h b/ext/libclementine-common/core/closure.h index ed7ab49d6..ca0081109 100644 --- a/ext/libclementine-common/core/closure.h +++ b/ext/libclementine-common/core/closure.h @@ -213,11 +213,11 @@ _detail::ClosureBase* NewClosure( return NewClosure(sender, signal, boost::bind(callback, args...)); } -template +template _detail::ClosureBase* NewClosure( QObject* sender, const char* signal, - T* receiver, void (T::*callback)(Args...), + T* receiver, Unused (T::*callback)(Args...), const Args&... args) { return NewClosure(sender, signal, boost::bind(callback, receiver, args...)); } diff --git a/tests/closure_test.cpp b/tests/closure_test.cpp index 2eeb48059..3bba20033 100644 --- a/tests/closure_test.cpp +++ b/tests/closure_test.cpp @@ -107,8 +107,9 @@ namespace { class Bar { public: explicit Bar(int a) : foo_(a) {} - void Foo(int* answer) { + bool Foo(int* answer) { *answer = foo_; + return true; } private: