X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fctcpparser.h;h=0118be24e674b5fbf40587695fe495871ca9cf7d;hp=5847785ba393fb0da6797ecedce199535ea4114d;hb=c194ed5fb3d15e14b9364f9796d3521910dc72fe;hpb=76db8cdfbeffaaba359c8e80cf2146da9e9e7f8a diff --git a/src/core/ctcpparser.h b/src/core/ctcpparser.h index 5847785b..0118be24 100644 --- a/src/core/ctcpparser.h +++ b/src/core/ctcpparser.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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() = default; + CtcpReply(CoreNetwork *net, QString buf) : network(net), bufferName(std::move(buf)) {} }; QHash _replies;