[tidy] modernize-loop-convert

This commit is contained in:
Bruno de Oliveira Abinader
2017-05-12 16:19:05 +03:00
parent c6eb4afe0e
commit 19c15ab557
3 changed files with 9 additions and 9 deletions

View File

@@ -186,9 +186,9 @@ optional<Color> parse(const std::string& css_str) {
std::transform(str.begin(), str.end(), str.begin(), ::tolower);
for (size_t i = 0; i < namedColorCount; i++) {
if (str == namedColors[i].name) {
return { namedColors[i].color };
for (const auto& namedColor : namedColors) {
if (str == namedColor.name) {
return { namedColor.color };
}
}