Convert a Q_FOREACH to C++11 range-based for loop.

Authored by nalvarez on Nov 29 2016, 6:55 AM.

Description

Convert a Q_FOREACH to C++11 range-based for loop.

According to https://www.kdab.com/goodbye-q_foreach/ Q_FOREACH will be
deprecated.

I verified that this loop doesn't modify the container, and that the
container is const& so this won't cause a detach when calling begin().
I also tried converting this to a std::any_of call, but the result was
significantly less readable.

Details

Committed
nalvarezNov 29 2016, 6:55 AM
Parents
R32:af272d38ed05: Save/Restore Tool Views order
Branches
Unknown
Tags
Unknown