diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-04 21:16:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-07 22:48:29 +0100 |
| commit | dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (patch) | |
| tree | e56a3f82fb9e1c8602f265bea0d0688d8a018644 /src/lib/cinema.h | |
| parent | 0d35820cf50d2789752b8776683b26d04642518d (diff) | |
std::shared_ptr
Diffstat (limited to 'src/lib/cinema.h')
| -rw-r--r-- | src/lib/cinema.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/lib/cinema.h b/src/lib/cinema.h index 86245953b..daa4aa8bf 100644 --- a/src/lib/cinema.h +++ b/src/lib/cinema.h @@ -22,8 +22,10 @@ * @brief Cinema class. */ + #include <libcxml/cxml.h> -#include <boost/enable_shared_from_this.hpp> +#include <memory> + namespace xmlpp { class Element; @@ -39,7 +41,7 @@ namespace dcpomatic { * This is a cinema name, some metadata and a list of * Screen objects. */ -class Cinema : public boost::enable_shared_from_this<Cinema> +class Cinema : public std::enable_shared_from_this<Cinema> { public: Cinema (std::string const & name_, std::list<std::string> const & e, std::string notes_, int utc_offset_hour, int utc_offset_minute) @@ -56,8 +58,8 @@ public: void as_xml (xmlpp::Element *) const; - void add_screen (boost::shared_ptr<dcpomatic::Screen>); - void remove_screen (boost::shared_ptr<dcpomatic::Screen>); + void add_screen (std::shared_ptr<dcpomatic::Screen>); + void remove_screen (std::shared_ptr<dcpomatic::Screen>); void set_utc_offset_hour (int h); void set_utc_offset_minute (int m); @@ -74,12 +76,12 @@ public: return _utc_offset_minute; } - std::list<boost::shared_ptr<dcpomatic::Screen> > screens () const { + std::list<std::shared_ptr<dcpomatic::Screen> > screens () const { return _screens; } private: - std::list<boost::shared_ptr<dcpomatic::Screen> > _screens; + std::list<std::shared_ptr<dcpomatic::Screen> > _screens; /** Offset such that the equivalent time in UTC can be determined by subtracting the offset from the local time. */ |
