Q_OBJECT
public:
- explicit Peer(AuthHandler *authHandler, QObject *parent = 0);
+ explicit Peer(AuthHandler *authHandler, QObject *parent = nullptr);
virtual Protocol::Type protocol() const = 0;
virtual QString description() const = 0;
};
// We need to special-case Peer* in attached signals/slots, so typedef it for the meta type system
-typedef Peer * PeerPtr;
+using PeerPtr = Peer *;
Q_DECLARE_METATYPE(PeerPtr)
QDataStream &operator<<(QDataStream &out, PeerPtr ptr);