X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fevent.cpp;fp=src%2Fcommon%2Fevent.cpp;h=4d9a6def1d09b06f7a905511bf63e291b9970878;hp=b933fa6472fc99db15ecb7d096d103ae62147e76;hb=39328183a6a87c6eb10a9dbbffcd5d65bf154a1f;hpb=d4b81a6d777de45611034b26bd89973d19e60c96 diff --git a/src/common/event.cpp b/src/common/event.cpp index b933fa64..4d9a6def 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -86,16 +86,16 @@ Event *Event::fromVariantMap(QVariantMap &map, Network *network) // sanity check if we have a valid enum value if (EventManager::enumName(inttype).isEmpty()) { qWarning() << "Received a serialized event with unknown type" << inttype; - return 0; + return nullptr; } EventManager::EventType type = static_cast(inttype); if (type == EventManager::Invalid || type == EventManager::GenericEvent) - return 0; + return nullptr; EventManager::EventType group = static_cast(type & EventManager::EventGroupMask); - Event *e = 0; + Event *e = nullptr; // we use static create() functions to keep group-specific special cases in the files they belong // e.g. IrcEventRawMessage @@ -121,7 +121,7 @@ Event *Event::fromVariantMap(QVariantMap &map, Network *network) if (!e) { qWarning() << "Can't create event of type" << type; - return 0; + return nullptr; } if (!map.isEmpty()) {