X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fctcpparser.h;h=7fd2a837c950615206dee11b38235685e3a3b023;hp=f5e5860864adc508047d5790bc69c1b491c3a752;hb=158443f71d48215eea8b47b836b61afd77654b78;hpb=68878dc8366f2f4a0afe132847aad9a51a80cdbf diff --git a/src/core/ctcpparser.h b/src/core/ctcpparser.h index f5e58608..7fd2a837 100644 --- a/src/core/ctcpparser.h +++ b/src/core/ctcpparser.h @@ -22,6 +22,7 @@ #define CTCPPARSER_H #include +#include #include "corenetwork.h" #include "eventmanager.h" @@ -36,7 +37,7 @@ class CtcpParser : public QObject Q_OBJECT public: - CtcpParser(CoreSession *coreSession, QObject *parent = 0); + CtcpParser(CoreSession *coreSession, QObject *parent = nullptr); inline CoreSession *coreSession() const { return _coreSession; } @@ -84,12 +85,12 @@ private: CoreSession *_coreSession; struct CtcpReply { - CoreNetwork *network; + CoreNetwork *network{nullptr}; QString bufferName; QList replies; - CtcpReply() : network(0) {} - CtcpReply(CoreNetwork *net, const QString &buf) : network(net), bufferName(buf) {} + CtcpReply() {} + CtcpReply(CoreNetwork *net, QString buf) : network(net), bufferName(std::move(buf)) {} }; QHash _replies;