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

Unified Diff: Source/modules/accessibility/AXARIAGridCell.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/AXARIAGrid.cpp ('k') | Source/modules/accessibility/AXARIAGridRow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXARIAGridCell.cpp
diff --git a/Source/modules/accessibility/AXARIAGridCell.cpp b/Source/modules/accessibility/AXARIAGridCell.cpp
index 77c125a5ec3a648576d52e0ce73101b612afd8d2..905f13da8b9caa4d749f68d8afd311e8d6a66a04 100644
--- a/Source/modules/accessibility/AXARIAGridCell.cpp
+++ b/Source/modules/accessibility/AXARIAGridCell.cpp
@@ -97,7 +97,7 @@ void AXARIAGridCell::rowIndexRange(pair<unsigned, unsigned>& rowRange)
if (!columnCount)
return;
- const AccessibilityChildrenVector& siblings = parent->children();
+ const auto& siblings = parent->children();
unsigned childrenSize = siblings.size();
for (unsigned k = 0; k < childrenSize; ++k) {
if (siblings[k].get() == this) {
@@ -120,7 +120,7 @@ void AXARIAGridCell::columnIndexRange(pair<unsigned, unsigned>& columnRange)
if (!parent->isTableRow() && !parent->isAXTable())
return;
- const AccessibilityChildrenVector& siblings = parent->children();
+ const auto& siblings = parent->children();
unsigned childrenSize = siblings.size();
for (unsigned k = 0; k < childrenSize; ++k) {
if (siblings[k].get() == this) {
« no previous file with comments | « Source/modules/accessibility/AXARIAGrid.cpp ('k') | Source/modules/accessibility/AXARIAGridRow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698