diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-05 20:08:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-05 20:08:15 +0100 |
| commit | 20c25e0f9b9a7ca5d1c3efa17ee6ce83c05051cc (patch) | |
| tree | b9534e70156cb0fa67bd505a2058e4d41555c185 /src/lib/film.cc | |
| parent | e1c43614ad31ce276b923f9b1d280ad0c102c4b1 (diff) | |
Cleanup: use std::any_of instead of a find_if.
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index bc201d1d0..6adc7dff4 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -2089,9 +2089,7 @@ bool Film::contains_atmos_content() const { auto const content = _playlist->content(); - return std::find_if(content.begin(), content.end(), [](shared_ptr<const Content> content) { - return static_cast<bool>(content->atmos); - }) != content.end(); + return std::any_of(content.begin(), content.end(), [](shared_ptr<const Content> content) { return static_cast<bool>(content->atmos); }); } |
