This replaces three Qt foreach loops I found in the tabwidget with C++ foreach loops. There were already newer foreach loops near the bottom, so this makes things consistent in the entire file.
Details
Details
Diff Detail
Diff Detail
- Repository
- R875 Falkon
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
You should always use for on const Qt containers, as otherwise it will detach.
So it should be:
const auto tabs = allTabs(false); for (WebTab *tab : tabs) { ... }