X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fevent.cpp;h=7341b2d0fab1e66459266e020870fc422ab05db3;hb=f9efdde7f3a6004af8f834c409cfa6ae1d877692;hp=4bb0221df9110ced78f36b4d26e90bd43b64a1d2;hpb=158443f71d48215eea8b47b836b61afd77654b78;p=quassel.git 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;