X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fkeyevent.cpp;h=dc4975cae01c199a8fd66f84c29edc9928081777;hb=00b029d3947bc751893d735a495b03ea8796e139;hp=ff1ccb66b03b057a0a6317854ea0ed597347d0ff;hpb=8b07343ab53d37b5340a56bde2d71ff2a3afb14a;p=quassel.git diff --git a/src/core/keyevent.cpp b/src/core/keyevent.cpp index ff1ccb66..dc4975ca 100644 --- a/src/core/keyevent.cpp +++ b/src/core/keyevent.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2013-2018 by the Quassel Project * + * Copyright (C) 2013-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -20,16 +20,15 @@ #include "keyevent.h" -Event *KeyEvent::create(EventManager::EventType type, QVariantMap &map, Network *network) +Event* KeyEvent::create(EventManager::EventType type, QVariantMap& map, Network* network) { if (type == EventManager::KeyEvent) return new KeyEvent(type, map, network); - return 0; + return nullptr; } - -KeyEvent::KeyEvent(EventManager::EventType type, QVariantMap &map, Network *network) +KeyEvent::KeyEvent(EventManager::EventType type, QVariantMap& map, Network* network) : IrcEvent(type, map, network) { _exchangeType = static_cast(map.take("exchangeType").toInt()); @@ -37,8 +36,7 @@ KeyEvent::KeyEvent(EventManager::EventType type, QVariantMap &map, Network *netw _key = map.take("key").toByteArray(); } - -void KeyEvent::toVariantMap(QVariantMap &map) const +void KeyEvent::toVariantMap(QVariantMap& map) const { IrcEvent::toVariantMap(map); map["exchangeType"] = exchangeType();