diff options
| author | Ahmad Samir <a.samirh78@gmail.com> | 2023-05-20 04:18:49 +0300 |
|---|---|---|
| committer | Ahmad Samir <a.samirh78@gmail.com> | 2023-06-22 02:20:29 +0300 |
| commit | 8726b6a35a7458e33a8dba922ebe659f25694e8d (patch) | |
| tree | 26e92d1f9fb4576596d2e8b5f31f6cf961a7dcd8 /src/tools/moc/preprocessor.cpp | |
| parent | a993510c9eb2da86a24a0c42ce13fbe3a9fa062b (diff) | |
Moc: use QList::removeIf
Yes, the code now uses two loops, but it's slightly better than
erasing-during-iteration; the alternative is using e.g. a while loop and
advancing an iterator manually with operator++() (in two separate
locations, since there would be a `continue` statement) or with the
return value of QList::erase (in one location).
Change-Id: I119d0e61bc06396f2158ecf9f4ae84a76d9bce7b
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/tools/moc/preprocessor.cpp')
0 files changed, 0 insertions, 0 deletions
