summaryrefslogtreecommitdiffstats
path: root/src/conditions.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-08-10 09:28:14 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-08-10 09:28:14 +0000
commit843eea0a65860740c57c559539f90d1e3b8ce039 (patch)
treef64ca84b9761c18ec718e84fcbea791a6866f70e /src/conditions.cpp
parentRename split (patch while we fix translations properly) (diff)
downloadinkscape-843eea0a65860740c57c559539f90d1e3b8ce039.tar.gz
inkscape-843eea0a65860740c57c559539f90d1e3b8ce039.zip
Fix CI errors
Diffstat (limited to 'src/conditions.cpp')
-rw-r--r--src/conditions.cpp8
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;