Q_OBJECT
public:
- AuthHandler(QObject *parent = 0);
+ AuthHandler(QObject *parent = nullptr);
QTcpSocket *socket() const;
private:
void invalidMessage();
- QTcpSocket *_socket; // FIXME: should be a QSharedPointer? -> premature disconnect before the peer has taken over
- bool _disconnectedSent;
+ QTcpSocket *_socket{nullptr}; // FIXME: should be a QSharedPointer? -> premature disconnect before the peer has taken over
+ bool _disconnectedSent{false};
};