X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fctcpparser.h;h=7fd2a837c950615206dee11b38235685e3a3b023;hp=5808a71280022f6dc65b5631e7b7ad74088114d8;hb=158443f71d48215eea8b47b836b61afd77654b78;hpb=39328183a6a87c6eb10a9dbbffcd5d65bf154a1f diff --git a/src/core/ctcpparser.h b/src/core/ctcpparser.h index 5808a712..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" @@ -84,12 +85,12 @@ private: CoreSession *_coreSession; struct CtcpReply { - CoreNetwork *network; + CoreNetwork *network{nullptr}; QString bufferName; QList replies; - CtcpReply() : network(nullptr) {} - CtcpReply(CoreNetwork *net, const QString &buf) : network(net), bufferName(buf) {} + CtcpReply() {} + CtcpReply(CoreNetwork *net, QString buf) : network(net), bufferName(std::move(buf)) {} }; QHash _replies;