/***************************************************************************
- * 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 *
private:
QHash<int, Peer*> _peerMap;
- // containg a list of argtypes for fast access
+ // contains a list of argtypes for fast access
QHash<const QMetaObject*, ExtendedMetaObject*> _extendedMetaObjects;
std::unordered_multimap<QByteArray, std::unique_ptr<SlotObjectBase>, Hash<QByteArray>> _attachedSlots; ///< Attached slot objects
// 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<decltype(args)>(args)...});
+ this->dispatchSignal(std::move(signalName), {QVariant::fromValue(args)...});
});
return true;
qWarning() << "Cannot call slot in different thread!";
return false;
}
- return invokeWithArgsList(_callable, params);
+ return invokeWithArgsList(_callable, params) ? true : false;
}
private: