diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-02 00:17:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-02 00:17:24 +0100 |
| commit | bd491319f52ba7f37ef5763960b4c0c00434b5f9 (patch) | |
| tree | c8578912077611e7fcbd5ba804abea97adce7b32 /src/subtitle_content.h | |
| parent | d87f979ea98a19614f164a0d49fccc1be926e789 (diff) | |
Tweaks: don't use shared_ptr for dcp::SubtitleString; SubtitleContent::write_xml takes a path.
Diffstat (limited to 'src/subtitle_content.h')
| -rw-r--r-- | src/subtitle_content.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/subtitle_content.h b/src/subtitle_content.h index 1ddb9122..c00c3f31 100644 --- a/src/subtitle_content.h +++ b/src/subtitle_content.h @@ -22,6 +22,7 @@ #include "content.h" #include "dcp_time.h" +#include "subtitle_string.h" #include <libcxml/cxml.h> namespace dcp @@ -63,14 +64,14 @@ public: return _language; } - std::list<boost::shared_ptr<SubtitleString> > subtitles_at (Time t) const; - std::list<boost::shared_ptr<SubtitleString> > const & subtitles () const { + std::list<SubtitleString> subtitles_at (Time t) const; + std::list<SubtitleString> const & subtitles () const { return _subtitles; } - void add (boost::shared_ptr<SubtitleString>); + void add (SubtitleString); - void write_xml () const; + void write_xml (boost::filesystem::path) const; Glib::ustring xml_as_string () const; protected: @@ -111,7 +112,7 @@ private: std::string _language; std::list<boost::shared_ptr<LoadFont> > _load_font_nodes; - std::list<boost::shared_ptr<SubtitleString> > _subtitles; + std::list<SubtitleString> _subtitles; bool _need_sort; }; |
