summaryrefslogtreecommitdiffstats
path: root/src/conditions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/conditions.cpp')
-rw-r--r--src/conditions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conditions.cpp b/src/conditions.cpp
index 38349f592..57f63181d 100644
--- a/src/conditions.cpp
+++ b/src/conditions.cpp
@@ -265,8 +265,8 @@ static bool evaluateRequiredFeatures(SPItem const */*item*/, gchar const *value)
return false;
}
- for ( unsigned int i = 0 ; i < parts.size() ; i++ ) {
- if (!evaluateSingleFeature(parts[i].c_str())) {
+ for (auto & part : parts) {
+ if (!evaluateSingleFeature(part.c_str())) {
return false;
}
}