Skip to content

Commit

Permalink
Bug 1645339 - Use range-based for with nsTObserverArray in mobile/and…
Browse files Browse the repository at this point in the history
…roid. r=geckoview-reviewers,agi

Differential Revision: https://phabricator.services.mozilla.com/D79504
  • Loading branch information
sigiesec committed Jun 16, 2020
1 parent e0ad444 commit 6eb160f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mobile/android/components/geckoview/GeckoViewHistory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ void GeckoViewHistory::QueryVisitedStateInContentProcess(
continue;
}
ObservingLinks& links = entry.Data();
nsTObserverArray<Link*>::BackwardIterator linksIter(links.mLinks);
while (linksIter.HasMore()) {
Link* link = linksIter.GetNext();

for (Link* link : links.mLinks.BackwardRange()) {
nsIWidget* widget = nsContentUtils::WidgetForContent(link->GetElement());
if (!widget) {
continue;
Expand Down

0 comments on commit 6eb160f

Please sign in to comment.