diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-02-15 20:50:04 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-02-15 20:50:04 +0000 |
| commit | 97642b4ccedbca62162c9321509717ed86f31d6b (patch) | |
| tree | 94975614959c0681fa61031b854458748f5f6b3a /src/conditions.cpp | |
| parent | More header cleanup/fwd declarations (diff) | |
| download | inkscape-97642b4ccedbca62162c9321509717ed86f31d6b.tar.gz inkscape-97642b4ccedbca62162c9321509717ed86f31d6b.zip | |
cppcheck
(bzr r10987)
Diffstat (limited to 'src/conditions.cpp')
| -rw-r--r-- | src/conditions.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/conditions.cpp b/src/conditions.cpp index 21218831a..9b233a74f 100644 --- a/src/conditions.cpp +++ b/src/conditions.cpp @@ -258,9 +258,11 @@ static bool evaluateRequiredFeatures(SPItem const */*item*/, gchar const *value) return true; std::vector<Glib::ustring> parts = splitByWhitespace(value); - if ( 0 == parts.size() ) + if (parts.empty()) + { return false; - + } + for ( unsigned int i = 0 ; i < parts.size() ; i++ ) { if (!evaluateSingleFeature(parts[i].c_str())) { return false; |
