Rename can_reference -> can_reference_anything.
authorCarl Hetherington <cth@carlh.net>
Sun, 14 May 2023 21:04:32 +0000 (23:04 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 16 Dec 2023 01:07:38 +0000 (02:07 +0100)
src/lib/dcp_content.cc
src/lib/dcp_content.h

index f50ae98008513385efb1bbfa09df754745b479d2..a02efd1c47becdb94548aeb27d6c5197302bf614 100644 (file)
@@ -612,7 +612,7 @@ DCPContent::reel_split_points (shared_ptr<const Film> film) const
 }
 
 bool
-DCPContent::can_reference(shared_ptr<const Film> film, string& why_not) const
+DCPContent::can_reference_anything(shared_ptr<const Film> film, string& why_not) const
 {
        /* We must be using the same standard as the film */
        if (_standard) {
@@ -702,7 +702,7 @@ DCPContent::can_reference_video (shared_ptr<const Film> film, string& why_not) c
                return false;
        }
 
-       return can_reference(film, why_not);
+       return can_reference_anything(film, why_not);
 }
 
 
@@ -741,7 +741,7 @@ DCPContent::can_reference_audio (shared_ptr<const Film> film, string& why_not) c
                return true;
        }
 
-       return can_reference(film, why_not);
+       return can_reference_anything(film, why_not);
 }
 
 
@@ -802,7 +802,7 @@ DCPContent::can_reference_text (shared_ptr<const Film> film, TextType type, stri
                why_not = _("it overlaps other text content; remove the other content.");
        }
 
-       return can_reference(film, why_not);
+       return can_reference_anything(film, why_not);
 }
 
 void
index c0445899e2bd9528d986f4ab2f39a4404ac65832..ce53da4952a8779fa621c95cecd3cdbdeaa3c86c 100644 (file)
@@ -186,7 +186,7 @@ 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::string& why_not) const;
+       bool can_reference_anything(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;