[applets/kicker]: Refactor loop in a function style
Arguably, `found=false; for(list) {if(cond) {found=true; break;}}` is harder to read than a single `found=array.contains(cond)` expression. My only regret is that C++ does not provide any `contains()` function / algorithm, so we are forced to `find_if` an element and compare it with an iterator's `end()` which would be an utter nonsense in any other language. But most importantly, this commit replaces Qt's deprecated foreach with a standard for-loop.
parent
ddbd82af
Please register or sign in to comment