X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpeerfactory.h;h=cd70ddc705ffd71a9ac88b28792512e71c981c84;hb=55ed2b3b4fac69d7d4bcb62f312b1fd233626577;hp=f78cf0c4b92ea5d1a4c2ebb1d7a07e8b9b140cf5;hpb=92fc8c5b119111a35ab8423c3cbde5b2a022badf;p=quassel.git diff --git a/src/common/peerfactory.h b/src/common/peerfactory.h index f78cf0c4..cd70ddc7 100644 --- a/src/common/peerfactory.h +++ b/src/common/peerfactory.h @@ -35,15 +35,21 @@ class RemotePeer; class COMMON_EXPORT PeerFactory { - public: // second value is the protocol-specific features - typedef QPair ProtoDescriptor; - typedef QVector ProtoList; + using ProtoDescriptor = QPair; + using ProtoList = QVector; static ProtoList supportedProtocols(); - static RemotePeer *createPeer(const ProtoDescriptor &protocol, AuthHandler *authHandler, QTcpSocket *socket, Compressor::CompressionLevel level, QObject *parent = 0); - static RemotePeer *createPeer(const ProtoList &protocols, AuthHandler *authHandler, QTcpSocket *socket, Compressor::CompressionLevel level, QObject *parent = 0); - + static RemotePeer* createPeer(const ProtoDescriptor& protocol, + AuthHandler* authHandler, + QTcpSocket* socket, + Compressor::CompressionLevel level, + QObject* parent = nullptr); + static RemotePeer* createPeer(const ProtoList& protocols, + AuthHandler* authHandler, + QTcpSocket* socket, + Compressor::CompressionLevel level, + QObject* parent = nullptr); };