X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fauthhandler.h;h=0d30e6624f42faf0a74b20a765debbb5add88ef1;hp=0f3c788189bcb171de6fedc473afd95708ad4a26;hb=8582c2ad5708a1972c85bea1cf8d81ad3ece4814;hpb=68878dc8366f2f4a0afe132847aad9a51a80cdbf;ds=sidebyside diff --git a/src/common/authhandler.h b/src/common/authhandler.h index 0f3c7881..0d30e662 100644 --- a/src/common/authhandler.h +++ b/src/common/authhandler.h @@ -18,8 +18,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef AUTHHANDLER_H -#define AUTHHANDLER_H +#pragma once + +#include "common-export.h" #include @@ -27,12 +28,12 @@ class Peer; -class AuthHandler : public QObject +class COMMON_EXPORT AuthHandler : public QObject { Q_OBJECT public: - AuthHandler(QObject *parent = 0); + AuthHandler(QObject *parent = nullptr); QTcpSocket *socket() const; @@ -70,8 +71,6 @@ protected slots: 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}; }; - -#endif