X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fkeyevent.cpp;h=23d7544744d27baceb5c034f70b357456fbe6937;hp=ab923255fb7963104148f712b4920fd11b4226c5;hb=f91f3faa1432894e6d6ecaaf0a1f60a483dd0129;hpb=39328183a6a87c6eb10a9dbbffcd5d65bf154a1f diff --git a/src/core/keyevent.cpp b/src/core/keyevent.cpp index ab923255..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,7 +20,7 @@ #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); @@ -28,8 +28,7 @@ Event *KeyEvent::create(EventManager::EventType type, QVariantMap &map, Network 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();