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
Lint Skipped - Unit
Unit Tests Skipped
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) { ... }