Some manual change to for-ranged loop.
Use "const auto&" where possible.
This commit is contained in:
parent
2717b96310
commit
4ac4dacffe
8 changed files with 9 additions and 8 deletions
|
@ -70,7 +70,7 @@ void WindowList::RemoveObserver(WindowListObserver* observer) {
|
|||
// static
|
||||
void WindowList::CloseAllWindows() {
|
||||
WindowVector windows = GetInstance()->windows_;
|
||||
for (auto& window : windows)
|
||||
for (const auto& window : windows)
|
||||
window->Close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue