diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-08-10 15:17:03 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2019-08-10 15:17:03 +0000 |
| commit | d403959669bbdf8e5441bc4c60b98916bc6eb172 (patch) | |
| tree | e222093694776e1aa9aeb4555b210674374a4012 /src | |
| parent | Fixes to regresion pointed in RC about text and tooltips (diff) | |
| download | inkscape-d403959669bbdf8e5441bc4c60b98916bc6eb172.tar.gz inkscape-d403959669bbdf8e5441bc4c60b98916bc6eb172.zip | |
Fix clangtidy CI
Diffstat (limited to 'src')
| -rw-r--r-- | src/conditions.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conditions.cpp b/src/conditions.cpp index c5f0d8b2c..62c44f660 100644 --- a/src/conditions.cpp +++ b/src/conditions.cpp @@ -217,8 +217,8 @@ static bool evaluateSVG11Feature(gchar const *feature) { "Extensibility", // not sure }; - for ( unsigned int i = 0 ; i < sizeof(_supported_features)/sizeof(_supported_features[0]); i++ ) { - if ( 0 == strcasecmp(feature, _supported_features[i]) ) + for (auto & _supported_feature : _supported_features) { + if ( 0 == strcasecmp(feature, _supported_feature) ) return true; } return false; @@ -235,8 +235,8 @@ static bool evaluateSVG10Feature(gchar const *feature) { // "svg.all", // "dom.svg.all" }; - for ( unsigned int i = 0 ; i < sizeof(_supported_features)/sizeof(_supported_features[0]); i++ ) { - if ( 0 == strcasecmp(feature, _supported_features[i]) ) + for (auto & _supported_feature : _supported_features) { + if ( 0 == strcasecmp(feature, _supported_feature) ) return true; } return false; |
