X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fctcpevent.cpp;h=e1d051859cdef2ff4d99acb3c9b67fe792494d0b;hp=5fbfdb26573180975ee46e9ff41d82067578f6ba;hb=c0d6dc0dec628f2e143e37ecc95cec45e636f8a5;hpb=9d54503555534a2c554f09a33df6afa33d6308ec diff --git a/src/common/ctcpevent.cpp b/src/common/ctcpevent.cpp index 5fbfdb26..e1d05185 100644 --- a/src/common/ctcpevent.cpp +++ b/src/common/ctcpevent.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-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 "ctcpevent.h" -Event *CtcpEvent::create(EventManager::EventType type, QVariantMap &map, Network *network) +Event* CtcpEvent::create(EventManager::EventType type, QVariantMap& map, Network* network) { if (type == EventManager::CtcpEvent || type == EventManager::CtcpEventFlush) return new CtcpEvent(type, map, network); - return 0; + return nullptr; } - -CtcpEvent::CtcpEvent(EventManager::EventType type, QVariantMap &map, Network *network) +CtcpEvent::CtcpEvent(EventManager::EventType type, QVariantMap& map, Network* network) : IrcEvent(type, map, network) { _ctcpType = static_cast(map.take("ctcpType").toInt()); @@ -40,8 +39,7 @@ CtcpEvent::CtcpEvent(EventManager::EventType type, QVariantMap &map, Network *ne _uuid = map.take("uuid").toString(); } - -void CtcpEvent::toVariantMap(QVariantMap &map) const +void CtcpEvent::toVariantMap(QVariantMap& map) const { IrcEvent::toVariantMap(map); map["ctcpType"] = ctcpType();