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

Unified Diff: Source/core/svg/SVGTests.cpp

Issue 1149663002: Refactoring Iterator used on SVGTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTests.cpp
diff --git a/Source/core/svg/SVGTests.cpp b/Source/core/svg/SVGTests.cpp
index 9953105561b60f7c48d4351e361bc99052f96854..7dc26ddef62706a242efa16597ec4b46f46e1730 100644
--- a/Source/core/svg/SVGTests.cpp
+++ b/Source/core/svg/SVGTests.cpp
@@ -63,10 +63,8 @@ bool SVGTests::isValid(Document& document) const
bool matchFound = false;
const Vector<String>& systemLanguage = m_systemLanguage->value()->values();
- Vector<String>::const_iterator it = systemLanguage.begin();
- Vector<String>::const_iterator itEnd = systemLanguage.end();
- for (; it != itEnd; ++it) {
- if (*it == defaultLanguage().string().substring(0, 2)) {
+ for (const auto& value : systemLanguage) {
+ if (value == defaultLanguage().string().substring(0, 2)) {
matchFound = true;
break;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698