diff --git a/ext/libstrawberry-common/core/closure.h b/ext/libstrawberry-common/core/closure.h index 6502b0bc8..e7ff5eb31 100644 --- a/ext/libstrawberry-common/core/closure.h +++ b/ext/libstrawberry-common/core/closure.h @@ -171,26 +171,14 @@ class CallbackClosure : public ClosureBase { } // namespace _detail template -_detail::ClosureBase *NewClosure( - QObject *sender, - const char *signal, - QObject *receiver, - const char *slot, - const Args&... args) { - return new _detail::Closure( - sender, signal, receiver, slot, args...); +_detail::ClosureBase *NewClosure(QObject *sender, const char *signal, QObject *receiver, const char *slot, const Args&... args) { + return new _detail::Closure(sender, signal, receiver, slot, args...); } // QSharedPointer variant template -_detail::ClosureBase *NewClosure( - QSharedPointer sender, - const char *signal, - QObject *receiver, - const char *slot, - const Args&... args) { - return new _detail::SharedClosure( - sender, signal, receiver, slot, args...); +_detail::ClosureBase *NewClosure(QSharedPointer sender, const char *signal, QObject *receiver, const char *slot, const Args&... args) { + return new _detail::SharedClosure(sender, signal, receiver, slot, args...); } _detail::ClosureBase *NewClosure(QObject *sender, const char *signal, std::function callback); @@ -201,20 +189,12 @@ _detail::ClosureBase *NewClosure(QObject *sender, const char *signal, std::funct } template -_detail::ClosureBase *NewClosure( - QObject *sender, - const char *signal, - void (*callback)(Args...), - const Args&... args) { +_detail::ClosureBase *NewClosure(QObject *sender, const char *signal, void (*callback)(Args...), const Args&... args) { return NewClosure(sender, signal, std::bind(callback, args...)); } template -_detail::ClosureBase *NewClosure( - QObject *sender, - const char *signal, - T *receiver, Unused (T::*callback)(Args...), - const Args&... args) { +_detail::ClosureBase *NewClosure(QObject *sender, const char *signal, T *receiver, Unused (T::*callback)(Args...), const Args&... args) { return NewClosure(sender, signal, std::bind(callback, receiver, args...)); } @@ -249,4 +229,3 @@ void DoAfter(std::function callback, std::chrono::duration duratio } #endif // CLOSURE_H -