X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fsignalproxy.h;h=a2b21827d056aa7917a567f7797b343658fe9c78;hp=885ebe60c0ad4dcc7a202d6b2f1e3319fbcc5f49;hb=HEAD;hpb=db00831bca59a012242d1ad5fac52a20c6cd2956 diff --git a/src/common/signalproxy.h b/src/common/signalproxy.h index 885ebe60..a2b21827 100644 --- a/src/common/signalproxy.h +++ b/src/common/signalproxy.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -283,7 +283,7 @@ private: private: QHash _peerMap; - // containg a list of argtypes for fast access + // contains a list of argtypes for fast access QHash _extendedMetaObjects; std::unordered_multimap, Hash> _attachedSlots; ///< Attached slot objects @@ -333,7 +333,7 @@ bool SignalProxy::attachSignal(const typename FunctionTraits::ClassType* // Upon signal emission, marshall the signal's arguments into a QVariantList and dispatch an RpcCall message connect(sender, signal, this, [this, signalName = std::move(name)](auto&&... args) { - this->dispatchSignal(std::move(signalName), {QVariant::fromValue(args)...}); + this->dispatchSignal(std::move(signalName), {QVariant::fromValue(args)...}); }); return true; @@ -422,7 +422,7 @@ public: qWarning() << "Cannot call slot in different thread!"; return false; } - return invokeWithArgsList(_callable, params); + return invokeWithArgsList(_callable, params) ? true : false; } private: