#ifndef KEYEVENT_H
#define KEYEVENT_H
+#include <utility>
+
#include "ircevent.h"
class KeyEvent : public IrcEvent
Finish
};
- explicit KeyEvent(EventManager::EventType type, Network *network, const QString &prefix, const QString &target,
- ExchangeType exchangeType, const QByteArray &key,
+ explicit KeyEvent(EventManager::EventType type, Network *network, const QString &prefix, QString target,
+ ExchangeType exchangeType, QByteArray key,
const QDateTime ×tamp = QDateTime())
: IrcEvent(type, network, prefix),
_exchangeType(exchangeType),
- _target(target),
- _key(key)
+ _target(std::move(target)),
+ _key(std::move(key))
{
setTimestamp(timestamp);
}
protected:
explicit KeyEvent(EventManager::EventType type, QVariantMap &map, Network *network);
- void toVariantMap(QVariantMap &map) const;
+ void toVariantMap(QVariantMap &map) const override;
- virtual inline QString className() const { return "KeyEvent"; }
- virtual inline void debugInfo(QDebug &dbg) const
+ inline QString className() const override { return "KeyEvent"; }
+ inline void debugInfo(QDebug &dbg) const override
{
NetworkEvent::debugInfo(dbg);
dbg << ", prefix = " << qPrintable(prefix())