The containers are local (window.keyEvents is a member of Window, which is constructed on the stack, so a local container too), and they are not changed during iteration, so use ranged-for and std::as_const. Drive-by change: make loop variable a const&. Task-number: QTBUG-115839 Change-Id: I9ad40068ff6209cf57f31ce0d4f38882eddbfc44 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%