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/text_decoder.h | |
| parent | 0d35820cf50d2789752b8776683b26d04642518d (diff) | |
std::shared_ptr
Diffstat (limited to 'src/lib/text_decoder.h')
| -rw-r--r-- | src/lib/text_decoder.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/text_decoder.h b/src/lib/text_decoder.h index fba9b5947..3fb27b653 100644 --- a/src/lib/text_decoder.h +++ b/src/lib/text_decoder.h @@ -40,16 +40,16 @@ class TextDecoder : public DecoderPart public: TextDecoder ( Decoder* parent, - boost::shared_ptr<const TextContent>, + std::shared_ptr<const TextContent>, dcpomatic::ContentTime first ); - boost::optional<dcpomatic::ContentTime> position (boost::shared_ptr<const Film>) const { + boost::optional<dcpomatic::ContentTime> position (std::shared_ptr<const Film>) const { return _position; } - void emit_bitmap_start (dcpomatic::ContentTime from, boost::shared_ptr<Image> image, dcpomatic::Rect<double> rect); - void emit_bitmap (dcpomatic::ContentTimePeriod period, boost::shared_ptr<Image> image, dcpomatic::Rect<double> rect); + void emit_bitmap_start (dcpomatic::ContentTime from, std::shared_ptr<Image> image, dcpomatic::Rect<double> rect); + void emit_bitmap (dcpomatic::ContentTimePeriod period, std::shared_ptr<Image> image, dcpomatic::Rect<double> rect); void emit_plain_start (dcpomatic::ContentTime from, std::list<dcp::SubtitleString> s); void emit_plain_start (dcpomatic::ContentTime from, sub::Subtitle const & subtitle); void emit_plain (dcpomatic::ContentTimePeriod period, std::list<dcp::SubtitleString> s); @@ -58,7 +58,7 @@ public: void seek (); - boost::shared_ptr<const TextContent> content () const { + std::shared_ptr<const TextContent> content () const { return _content; } @@ -67,7 +67,7 @@ public: boost::signals2::signal<void (dcpomatic::ContentTime)> Stop; private: - boost::shared_ptr<const TextContent> _content; + std::shared_ptr<const TextContent> _content; boost::optional<dcpomatic::ContentTime> _position; }; |
