[chromium-style] auto variable type must not deduce to a raw pointer type
This commit is contained in:
parent
667c43398c
commit
a635f078c6
61 changed files with 189 additions and 188 deletions
|
@ -84,7 +84,7 @@ void WindowList::CloseAllWindows() {
|
|||
#if defined(OS_MACOSX)
|
||||
std::reverse(windows.begin(), windows.end());
|
||||
#endif
|
||||
for (const auto& window : windows)
|
||||
for (auto* const& window : windows)
|
||||
if (!window->IsClosed())
|
||||
window->Close();
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ void WindowList::CloseAllWindows() {
|
|||
// static
|
||||
void WindowList::DestroyAllWindows() {
|
||||
WindowVector windows = GetInstance()->windows_;
|
||||
for (const auto& window : windows)
|
||||
for (auto* const& window : windows)
|
||||
window->CloseImmediately(); // e.g. Destroy()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue