Put overlaps() into the dcpomatic namespace.
authorCarl Hetherington <cth@carlh.net>
Sun, 14 May 2023 21:01:06 +0000 (23:01 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 28 Jan 2024 01:01:58 +0000 (02:01 +0100)
src/lib/overlaps.cc
src/lib/overlaps.h

index fbc6b5cb1813c7646950f554c25cc952f8e6a5d0..bed75a8221947fbb67de245195413d30145e66c1 100644 (file)
@@ -28,7 +28,8 @@ using std::shared_ptr;
 using namespace dcpomatic;
 
 
-ContentList overlaps (shared_ptr<const Film> film, ContentList cl, function<bool (shared_ptr<const Content>)> part, DCPTime from, DCPTime to)
+ContentList
+dcpomatic::overlaps(shared_ptr<const Film> film, ContentList cl, function<bool (shared_ptr<const Content>)> part, DCPTime from, DCPTime to)
 {
        ContentList overlaps;
        DCPTimePeriod period (from, to);
index bb8277eaa91807966e2adf0f2779b1706211d283..f405c0fabffc80e79890a9d606f6212df4da73a9 100644 (file)
@@ -27,6 +27,9 @@ class ContentPart;
 class Film;
 
 
+namespace dcpomatic {
+
+
 /** @return Pieces of content with a given part (video, audio,
  *  subtitle) that overlap a specified time range in the given
  *  ContentList
@@ -34,3 +37,7 @@ class Film;
 ContentList overlaps (
        std::shared_ptr<const Film> film, ContentList cl, std::function<bool (std::shared_ptr<const Content>)> part, dcpomatic::DCPTime from, dcpomatic::DCPTime to
        );
+
+
+}
+