X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fkeyevent.cpp;h=23d7544744d27baceb5c034f70b357456fbe6937;hp=ff1ccb66b03b057a0a6317854ea0ed597347d0ff;hb=f91f3faa1432894e6d6ecaaf0a1f60a483dd0129;hpb=8b07343ab53d37b5340a56bde2d71ff2a3afb14a diff --git a/src/core/keyevent.cpp b/src/core/keyevent.cpp index ff1ccb66..23d75447 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-2019 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();