diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
| commit | 169dff19d4da8d76e69b8e896aa25b0013639c03 (patch) | |
| tree | a0c070fa95188b5cde708ac285e6a2db9df4a83f /src/conditions.cpp | |
| parent | Avoid creating a new document before opening an old document. (diff) | |
| download | inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.tar.gz inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.zip | |
modernize loops
Diffstat (limited to '')
| -rw-r--r-- | src/conditions.cpp | 4 |
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; } } |
