X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreuserinputhandler.h;h=a45fcaec75b4fe8f440e353d3861020f1666f4b9;hp=55539e64ce6366dc9fb820a4ed623ea56a9bd43b;hb=c194ed5fb3d15e14b9364f9796d3521910dc72fe;hpb=39328183a6a87c6eb10a9dbbffcd5d65bf154a1f diff --git a/src/core/coreuserinputhandler.h b/src/core/coreuserinputhandler.h index 55539e64..a45fcaec 100644 --- a/src/core/coreuserinputhandler.h +++ b/src/core/coreuserinputhandler.h @@ -21,6 +21,8 @@ #ifndef COREUSERINPUTHANDLER_H #define COREUSERINPUTHANDLER_H +#include + #include "corebasichandler.h" #include "corenetwork.h" @@ -107,7 +109,7 @@ public slots: void issueAway(const QString &msg, bool autoCheck = true, const bool skipFormatting = false); protected: - void timerEvent(QTimerEvent *event); + void timerEvent(QTimerEvent *event) override; private: void doMode(const BufferInfo& bufferInfo, const QChar &addOrRemove, const QChar &mode, const QString &nickList); @@ -121,8 +123,8 @@ private: struct Command { BufferInfo bufferInfo; QString command; - Command(const BufferInfo &info, const QString &command) : bufferInfo(info), command(command) {} - Command() {} + Command(BufferInfo info, QString command) : bufferInfo(std::move(info)), command(std::move(command)) {} + Command() = default; }; QHash _delayedCommands;