X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fcoreuserinputhandler.h;h=94d8464a375e0140de3103802e75e825d639ec29;hb=158443f71d48215eea8b47b836b61afd77654b78;hp=5c9dcd6e74cfddae93477ed75b35f818a8aa9630;hpb=dd69349ca91776432a4a53aa4d18dd8ef018cd26;p=quassel.git diff --git a/src/core/coreuserinputhandler.h b/src/core/coreuserinputhandler.h index 5c9dcd6e..94d8464a 100644 --- a/src/core/coreuserinputhandler.h +++ b/src/core/coreuserinputhandler.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 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 * @@ -21,6 +21,8 @@ #ifndef COREUSERINPUTHANDLER_H #define COREUSERINPUTHANDLER_H +#include + #include "corebasichandler.h" #include "corenetwork.h" @@ -32,7 +34,7 @@ class CoreUserInputHandler : public CoreBasicHandler Q_OBJECT public: - CoreUserInputHandler(CoreNetwork *parent = 0); + CoreUserInputHandler(CoreNetwork *parent = nullptr); inline CoreNetwork *coreNetwork() const { return qobject_cast(parent()); } void handleUserInput(const BufferInfo &bufferInfo, const QString &text); @@ -107,21 +109,21 @@ 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); void banOrUnban(const BufferInfo &bufferInfo, const QString &text, bool ban); - void putPrivmsg(const QString &target, const QString &message, std::function encodeFunc, Cipher *cipher = 0); + void putPrivmsg(const QString &target, const QString &message, std::function encodeFunc, Cipher *cipher = nullptr); #ifdef HAVE_QCA2 - QByteArray encrypt(const QString &target, const QByteArray &message, bool *didEncrypt = 0) const; + QByteArray encrypt(const QString &target, const QByteArray &message, bool *didEncrypt = nullptr) const; #endif struct Command { BufferInfo bufferInfo; QString command; - Command(const BufferInfo &info, const QString &command) : bufferInfo(info), command(command) {} + Command(BufferInfo info, QString command) : bufferInfo(std::move(info)), command(std::move(command)) {} Command() {} };