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; |
} |