diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-20 14:14:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-08 00:35:29 +0100 |
| commit | d39880eef211a296fa8ef4712cdef5945d08527c (patch) | |
| tree | 45dce8f3e1fd599ca76677e31eee2a71c9a4fbc1 /src/cpl.h | |
| parent | 75faebaf1d74e2b52360905e94e9f5bf31c34124 (diff) | |
std::shared_ptr
Diffstat (limited to 'src/cpl.h')
| -rw-r--r-- | src/cpl.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -49,7 +49,7 @@ #include <boost/filesystem.hpp> #include <boost/function.hpp> #include <boost/optional.hpp> -#include <boost/shared_ptr.hpp> +#include <memory> #include <list> #include <vector> @@ -74,32 +74,32 @@ public: explicit CPL (boost::filesystem::path file); bool equals ( - boost::shared_ptr<const Asset> other, + std::shared_ptr<const Asset> other, EqualityOptions options, NoteHandler note ) const; - void add (boost::shared_ptr<Reel> reel); + void add (std::shared_ptr<Reel> reel); void add (DecryptedKDM const &); /** @return the reels in this CPL */ - std::list<boost::shared_ptr<Reel> > reels () const { + std::list<std::shared_ptr<Reel> > reels () const { return _reels; } /** @return the ReelMXFs in this CPL in all reels */ - std::list<boost::shared_ptr<const ReelMXF> > reel_mxfs () const; - std::list<boost::shared_ptr<ReelMXF> > reel_mxfs (); + std::list<std::shared_ptr<const ReelMXF> > reel_mxfs () const; + std::list<std::shared_ptr<ReelMXF> > reel_mxfs (); bool encrypted () const; void write_xml ( boost::filesystem::path file, Standard standard, - boost::shared_ptr<const CertificateChain> + std::shared_ptr<const CertificateChain> ) const; - void resolve_refs (std::list<boost::shared_ptr<Asset> >); + void resolve_refs (std::list<std::shared_ptr<Asset> >); int64_t duration () const; @@ -311,7 +311,7 @@ private: /* See note for _release_territory above */ std::vector<std::string> _additional_subtitle_languages; - std::list<boost::shared_ptr<Reel> > _reels; + std::list<std::shared_ptr<Reel> > _reels; /** Standard of CPL that was read in */ boost::optional<Standard> _standard; |
