diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-07 23:16:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-07 23:16:45 +0100 |
| commit | ba5915461f1622715a69fa25579e5e27e64fb079 (patch) | |
| tree | 221ce87dfbac455c32459e07beb92b6003243e89 /src/subtitle_asset.h | |
| parent | a4fb6290e31f7e197cc399c745d320442eb093d4 (diff) | |
SubtitleString -> shared_ptr<Subtitle>
Diffstat (limited to 'src/subtitle_asset.h')
| -rw-r--r-- | src/subtitle_asset.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h index ce76eb3b..1108514a 100644 --- a/src/subtitle_asset.h +++ b/src/subtitle_asset.h @@ -69,7 +69,7 @@ namespace order { /** @class SubtitleAsset * @brief A parent for classes representing a file containing subtitles. * - * This class holds a list of SubtitleString objects which it can extract + * This class holds a list of Subtitle objects which it can extract * from the appropriate part of either an Interop or SMPTE XML file. * Its subclasses InteropSubtitleAsset and SMPTESubtitleAsset handle the * differences between the two types. @@ -86,12 +86,12 @@ public: NoteHandler note ) const; - std::list<SubtitleString> subtitles_during (Time from, Time to, bool starting) const; - std::list<SubtitleString> const & subtitles () const { + std::list<boost::shared_ptr<Subtitle> > subtitles_during (Time from, Time to, bool starting) const; + std::list<boost::shared_ptr<Subtitle> > const & subtitles () const { return _subtitles; } - virtual void add (SubtitleString); + virtual void add (boost::shared_ptr<Subtitle>); virtual void add_font (std::string id, boost::filesystem::path file) = 0; std::map<std::string, Data> fonts_with_load_ids () const; @@ -136,7 +136,7 @@ protected: void subtitles_as_xml (xmlpp::Element* root, int time_code_rate, Standard standard) const; /** All our subtitles, in no particular order */ - std::list<SubtitleString> _subtitles; + std::list<boost::shared_ptr<Subtitle> > _subtitles; class Font { |
