1 parent 9e03197 commit db1b6ffCopy full SHA for db1b6ff
1 file changed
lib/importproject.cpp
@@ -839,13 +839,9 @@ namespace {
839
}
840
841
bool excludedfromBuild(const ProjectConfiguration &pc, std::vector<std::string> &errors) const {
842
- if (mExcludedFromBuild.empty())
843
- return false;
844
- for (const ExcludedFromBuild &excluded : mExcludedFromBuild) {
845
- if (excluded.conditionIsTrue(pc, mFilename, errors))
846
- return true;
847
- }
848
+ return std::any_of(mExcludedFromBuild.cbegin(), mExcludedFromBuild.cend(), [&](const ExcludedFromBuild &excluded) {
+ return excluded.conditionIsTrue(pc, mFilename, errors);
+ });
849
850
std::string mFilename;
851
std::list<ExcludedFromBuild> mExcludedFromBuild;
0 commit comments