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

Unified Diff: Source/modules/accessibility/AXARIAGridRow.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 | « Source/modules/accessibility/AXARIAGridCell.cpp ('k') | Source/modules/accessibility/AXLayoutObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXARIAGridRow.cpp
diff --git a/Source/modules/accessibility/AXARIAGridRow.cpp b/Source/modules/accessibility/AXARIAGridRow.cpp
index baf49a981f9a3c761703f94514b3223b2e742e2a..e27e0bcd88ce59add20a231873ee0b5076650f27 100644
--- a/Source/modules/accessibility/AXARIAGridRow.cpp
+++ b/Source/modules/accessibility/AXARIAGridRow.cpp
@@ -60,10 +60,7 @@ bool AXARIAGridRow::isARIATreeGridRow() const
void AXARIAGridRow::headerObjectsForRow(AccessibilityChildrenVector& headers)
{
- const AccessibilityChildrenVector& rowChildren = children();
- unsigned childrenCount = rowChildren.size();
- for (unsigned i = 0; i < childrenCount; i++) {
- AXObject* cell = rowChildren[i].get();
+ for (const auto& cell : children()) {
if (cell->roleValue() == RowHeaderRole)
headers.append(cell);
}
« no previous file with comments | « Source/modules/accessibility/AXARIAGridCell.cpp ('k') | Source/modules/accessibility/AXLayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698