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); |
} |