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

Unified Diff: Source/core/inspector/ContentSearchUtils.cpp

Issue 800113002: Use C++11 range-based for loop in Source/core/inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: REBASE AGAIN! Created 6 years 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/core/inspector/DOMPatchSupport.cpp » ('j') | Source/core/inspector/DOMPatchSupport.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/ContentSearchUtils.cpp
diff --git a/Source/core/inspector/ContentSearchUtils.cpp b/Source/core/inspector/ContentSearchUtils.cpp
index d84f74dd2472f5d59344727fc5483e9e34dd66db..8b6556435d92487732387856dbc61567459938ab 100644
--- a/Source/core/inspector/ContentSearchUtils.cpp
+++ b/Source/core/inspector/ContentSearchUtils.cpp
@@ -101,8 +101,8 @@ PassRefPtr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> > searchInTextByLi
OwnPtr<ScriptRegexp> regex = ContentSearchUtils::createSearchRegex(query, caseSensitive, isRegex);
Vector<pair<int, String> > matches = getScriptRegexpMatchesByLines(regex.get(), text);
- for (Vector<pair<int, String> >::const_iterator it = matches.begin(); it != matches.end(); ++it)
- result->addItem(buildObjectForSearchMatch(it->first, it->second));
+ for (const auto& it : matches)
+ result->addItem(buildObjectForSearchMatch(it.first, it.second));
return result;
}
« no previous file with comments | « no previous file | Source/core/inspector/DOMPatchSupport.cpp » ('j') | Source/core/inspector/DOMPatchSupport.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698