X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fkeyevent.h;h=65db084a9bc6a6a6a318c4711b07b9b379b19790;hp=b3f4d48c899132c7489971a0d4b48ed1c1a9c332;hb=3a3e844f9fcfd12235a0086af75ecd503b621ef4;hpb=e8a39b4c3c92e193ab861a3fea84a261bb6fbd24 diff --git a/src/core/keyevent.h b/src/core/keyevent.h index b3f4d48c..65db084a 100644 --- a/src/core/keyevent.h +++ b/src/core/keyevent.h @@ -21,6 +21,8 @@ #ifndef KEYEVENT_H #define KEYEVENT_H +#include + #include "ircevent.h" class KeyEvent : public IrcEvent @@ -31,13 +33,13 @@ public: 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); }