Skip to content

Commit 61434c5

Browse files
author
Felix Faber
committed
Trying to appease the Pipeline
1 parent 76f6cfe commit 61434c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: lib/importproject.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -865,11 +865,11 @@ bool ImportProject::importVcxproj(const std::string &filename, std::map<std::str
865865

866866
ImportProject::SharedItemsProject ImportProject::importVcxitems(const std::string& filename, const std::vector<std::string>& fileFilters, std::vector<SharedItemsProject> &cache)
867867
{
868-
for (const auto &entry : cache) {
869-
if (filename == entry.pathToProjectFile) {
870-
return entry;
871-
}
872-
}
868+
auto isInCacheCheck = [filename](const auto& e) -> bool { return filename == e.pathToProjectFile; };
869+
auto iterator = std::find_if(cache.begin(), cache.end(), isInCacheCheck);
870+
if (iterator != std::end(cache)) {
871+
return *iterator;
872+
}
873873

874874
SharedItemsProject result{};
875875
result.pathToProjectFile = filename;

0 commit comments

Comments
 (0)