Index: Source/core/inspector/ContentSearchUtils.cpp |
diff --git a/Source/core/inspector/ContentSearchUtils.cpp b/Source/core/inspector/ContentSearchUtils.cpp |
index d84f74dd2472f5d59344727fc5483e9e34dd66db..cf065e3e0427f58f618c55f5c90f090d2ddf44c3 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& match : matches) |
+ result->addItem(buildObjectForSearchMatch(match.first, match.second)); |
return result; |
} |