Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(879)

Unified Diff: ash/common/wm/overview/window_grid.cc

Issue 2110643002: ash: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/common/wm/overview/window_grid.cc
diff --git a/ash/common/wm/overview/window_grid.cc b/ash/common/wm/overview/window_grid.cc
index c7c803c9bbf39b2d0a0c52fa6df72451f42beec4..5dc1679319270361d8c8a61d344c258153f500fb 100644
--- a/ash/common/wm/overview/window_grid.cc
+++ b/ash/common/wm/overview/window_grid.cc
@@ -411,7 +411,7 @@ WindowGrid::WindowGrid(WmWindow* root_window,
selected_index_(0),
num_columns_(0) {
std::vector<WmWindow*> windows_in_root;
- for (auto window : windows) {
+ for (auto* window : windows) {
if (window->GetRootWindow() == root_window)
windows_in_root.push_back(window);
}
@@ -424,7 +424,7 @@ WindowGrid::WindowGrid(WmWindow* root_window,
ReorderItemsGreedyLeastMovement(&windows_in_root, root_window_,
window_selector_->text_filter_bottom());
}
- for (auto window : windows_in_root) {
+ for (auto* window : windows_in_root) {
window->AddObserver(this);
observed_windows_.insert(window);
window_list_.push_back(new WindowSelectorItem(window, window_selector_));
@@ -907,7 +907,7 @@ bool WindowGrid::FitWindowRectsInBounds(const gfx::Rect& bounds,
// necessary to determine each item's scale.
const gfx::Size item_size(0, height);
size_t i = 0;
- for (auto window : window_list_) {
+ for (auto* window : window_list_) {
const gfx::Rect target_bounds = window->GetWindow()->GetTargetBounds();
const int width =
std::max(1, gfx::ToFlooredInt(target_bounds.width() *
« no previous file with comments | « ash/common/wm/overview/scoped_transform_overview_window.cc ('k') | ash/common/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698