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

Unified Diff: Source/modules/accessibility/AXARIAGrid.cpp

Issue 1019313003: Use c++11 range loops in accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | Source/modules/accessibility/AXARIAGridCell.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXARIAGrid.cpp
diff --git a/Source/modules/accessibility/AXARIAGrid.cpp b/Source/modules/accessibility/AXARIAGrid.cpp
index a543b9608c14715c87f86d80f0a918796eeea6af..0d3349ac670a6ba9aded0d360c8b434d8106ede8 100644
--- a/Source/modules/accessibility/AXARIAGrid.cpp
+++ b/Source/modules/accessibility/AXARIAGrid.cpp
@@ -107,10 +107,8 @@ void AXARIAGrid::addChildren()
// The children of this non-row will contain all non-ignored elements (recursing to find them).
// This allows the table to dive arbitrarily deep to find the rows.
- const AccessibilityChildrenVector& children = child->children();
- size_t length = children.size();
- for (size_t i = 0; i < length; ++i)
- addTableCellChild(children[i].get(), appendedRows, columnCount);
+ for (const auto& childObject : child->children())
+ addTableCellChild(childObject.get(), appendedRows, columnCount);
}
}
« no previous file with comments | « no previous file | Source/modules/accessibility/AXARIAGridCell.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698