#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);
}