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=7341b2d0fab1e66459266e020870fc422ab05db3;hp=4bb0221df9110ced78f36b4d26e90bd43b64a1d2;hb=e2188dc438be6f3eb0d9cdf47d28821aefe9835e;hpb=c194ed5fb3d15e14b9364f9796d3521910dc72fe diff --git a/src/common/event.cpp b/src/common/event.cpp index 4bb0221d..7341b2d0 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -87,11 +87,11 @@ Event *Event::fromVariantMap(QVariantMap &map, Network *network) return nullptr; } - EventManager::EventType type = static_cast(inttype); + auto type = static_cast(inttype); if (type == EventManager::Invalid || type == EventManager::GenericEvent) return nullptr; - EventManager::EventType group = static_cast(type & EventManager::EventGroupMask); + auto group = static_cast(type & EventManager::EventGroupMask); Event *e = nullptr;