summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/cpp/cppwriteinitialization.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2023-08-14 16:32:28 +0300
committerAhmad Samir <a.samirh78@gmail.com>2025-01-21 01:15:26 +0300
commit6b7c354f5af65f263dc8526f1e2362aeb0eedfeb (patch)
treed4bf7ff81ede307e5e116beac26fc680b2a6dc1b /src/tools/uic/cpp/cppwriteinitialization.cpp
parent9b44acfd26169d087224719b0813a146e7b731b3 (diff)
tst_QKeyEvent: compile with QT_NO_FOREACH
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>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions