mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 16:18:43 -05:00
clang-tidy: fix performance-trivially-destructible warnings
This commit is contained in:
@@ -145,10 +145,7 @@ cmFileLockResult cmFileLockPool::ScopePool::Release(
|
||||
bool cmFileLockPool::ScopePool::IsAlreadyLocked(
|
||||
const std::string& filename) const
|
||||
{
|
||||
for (auto const& lock : this->Locks) {
|
||||
if (lock.IsLocked(filename)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return std::any_of(
|
||||
this->Locks.begin(), this->Locks.end(),
|
||||
[&filename](auto const& lock) { return lock.IsLocked(filename); });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user