summaryrefslogtreecommitdiff
path: root/src/subtitle_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-07-02 00:17:24 +0100
committerCarl Hetherington <cth@carlh.net>2014-07-02 00:17:24 +0100
commitbd491319f52ba7f37ef5763960b4c0c00434b5f9 (patch)
treec8578912077611e7fcbd5ba804abea97adce7b32 /src/subtitle_content.h
parentd87f979ea98a19614f164a0d49fccc1be926e789 (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.h11
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;
};