[chromium-style] auto variable type must not deduce to a raw pointer type

This commit is contained in:
Jeremy Apthorp 2018-04-17 15:41:47 -07:00
parent 667c43398c
commit a635f078c6
61 changed files with 189 additions and 188 deletions

View file

@ -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()
}