projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Use auto where the type is clear from context
[quassel.git]
/
src
/
common
/
event.cpp
diff --git
a/src/common/event.cpp
b/src/common/event.cpp
index
4bb0221
..
7341b2d
100644
(file)
--- a/
src/common/event.cpp
+++ b/
src/common/event.cpp
@@
-87,11
+87,11
@@
Event *Event::fromVariantMap(QVariantMap &map, Network *network)
return nullptr;
}
return nullptr;
}
-
EventManager::EventType
type = static_cast<EventManager::EventType>(inttype);
+
auto
type = static_cast<EventManager::EventType>(inttype);
if (type == EventManager::Invalid || type == EventManager::GenericEvent)
return nullptr;
if (type == EventManager::Invalid || type == EventManager::GenericEvent)
return nullptr;
-
EventManager::EventType
group = static_cast<EventManager::EventType>(type & EventManager::EventGroupMask);
+
auto
group = static_cast<EventManager::EventType>(type & EventManager::EventGroupMask);
Event *e = nullptr;
Event *e = nullptr;