Commit 01a90d3c authored by abbycin's avatar abbycin

replace foreach to range based for

parent 4727211c
......@@ -85,7 +85,7 @@ bool QGlobalShortcut::unsetKey() {
bool QGlobalShortcut::activate(quint32 id) {
if (shortcuts_.contains(id)) {
foreach (QGlobalShortcut* s, shortcuts_.values(id)) {
for (QGlobalShortcut* s: shortcuts_.values(id)) {
emit s->activated();
}
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment