Attempt to tidy up internal APIs slightly.
[dcpomatic.git] / src / lib / dcpomatic_time.h
index 16d93ca28bc83abc01c8273c6ece6cd092b42359..35ddd0199e448ae65420f17ad8bfd637fe24bdc3 100644 (file)
@@ -260,7 +260,7 @@ public:
                return TimePeriod<T> (from + o, to + o);
        }
 
-       boost::optional<TimePeriod<T> > overlap (TimePeriod<T> const & other) {
+       boost::optional<TimePeriod<T> > overlap (TimePeriod<T> const & other) const {
                T const max_from = std::max (from, other.from);
                T const min_to = std::min (to, other.to);