/***************************************************************************
- * 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 *
#define CTCPPARSER_H
#include <QUuid>
+#include <utility>
#include "corenetwork.h"
#include "eventmanager.h"
Q_OBJECT
public:
- CtcpParser(CoreSession *coreSession, QObject *parent = 0);
+ CtcpParser(CoreSession *coreSession, QObject *parent = nullptr);
inline CoreSession *coreSession() const { return _coreSession; }
CoreSession *_coreSession;
struct CtcpReply {
- CoreNetwork *network;
+ CoreNetwork *network{nullptr};
QString bufferName;
QList<QByteArray> 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<QUuid, CtcpReply> _replies;