diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-05-14 23:01:34 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-28 02:01:58 +0100 |
| commit | db63785a521d31a6bb1e7109e83768880fefa783 (patch) | |
| tree | d88a1c4f8a62beaf7314bec77fb46beac676b196 /src/lib/dcp_content.h | |
| parent | b24eb0e8fbad6779c77f7015d3a8c8c5cf206706 (diff) | |
Cleanup: rearrange how overlap checking is done in can_reference().
Diffstat (limited to 'src/lib/dcp_content.h')
| -rw-r--r-- | src/lib/dcp_content.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/dcp_content.h b/src/lib/dcp_content.h index 3753740a2..c0445899e 100644 --- a/src/lib/dcp_content.h +++ b/src/lib/dcp_content.h @@ -186,12 +186,8 @@ private: void read_directory (boost::filesystem::path); void read_sub_directory (boost::filesystem::path); std::list<dcpomatic::DCPTimePeriod> reels (std::shared_ptr<const Film> film) const; - bool can_reference ( - std::shared_ptr<const Film> film, - std::function <bool (std::shared_ptr<const Content>)>, - std::string overlapping, - std::string& why_not - ) const; + bool can_reference(std::shared_ptr<const Film> film, std::string& why_not) const; + bool overlaps(std::shared_ptr<const Film> film, std::function<bool (std::shared_ptr<const Content>)> part) const; std::string _name; /** true if our DCP is encrypted */ |
