X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fsignalproxy.h;h=63d3438a98b896ecf9dfc490b1a0853a504d3026;hp=500693f4478239c301c9d5b4e95709861eba5744;hb=28cee4568aeb1ce3014d11234e40f19e7aeae5bd;hpb=44428e76a8b2ad9617bef927edd01dd3a1a5caaf diff --git a/src/common/signalproxy.h b/src/common/signalproxy.h index 500693f4..63d3438a 100644 --- a/src/common/signalproxy.h +++ b/src/common/signalproxy.h @@ -83,7 +83,7 @@ public: /**@{*/ /** * This method allows to send a signal only to a limited set of peers - * @param peerIds A list of peers that should receive it + * @param peers A list of peers that should receive it * @param closure Code you want to execute within of that restricted environment */ void restrictTargetPeers(QSet peers, std::function closure); @@ -103,7 +103,7 @@ public: #endif /**}@*/ - inline int peerCount() const { return _peers.size(); } + inline int peerCount() const { return _peerMap.size(); } QVariantList peerData(); Peer *peerById(int peerId); @@ -177,7 +177,6 @@ private: static void disconnectDevice(QIODevice *dev, const QString &reason = QString()); - QSet _peers; QHash _peerMap; // containg a list of argtypes for fast access @@ -206,7 +205,7 @@ private: QSet _restrictedTargets; bool _restrictMessageTarget = false; - Peer *_sourcePeer; + Peer *_sourcePeer = nullptr; friend class SignalRelay; friend class SyncableObject;