summaryrefslogtreecommitdiff
path: root/src/lib/content_text.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-08-23 11:19:06 +0100
committerCarl Hetherington <cth@carlh.net>2018-08-23 11:19:06 +0100
commit7962e6cfd5fbd97e1e44aebe3fc190c62da027e9 (patch)
tree39ceac432749a506fc3dc9ff52d3d8aff4a85df3 /src/lib/content_text.h
parent8855efa208776139bf9ce5a188db080e1e136e9b (diff)
Remove TextType from various places as (I believe) it can be inferred from the content.
Diffstat (limited to 'src/lib/content_text.h')
-rw-r--r--src/lib/content_text.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/lib/content_text.h b/src/lib/content_text.h
index 3ef011f61..2d8910577 100644
--- a/src/lib/content_text.h
+++ b/src/lib/content_text.h
@@ -33,29 +33,23 @@ class Image;
class ContentText
{
public:
- explicit ContentText (ContentTime f, TextType t)
+ explicit ContentText (ContentTime f)
: _from (f)
- , _type (t)
{}
ContentTime from () const {
return _from;
}
- TextType type () const {
- return _type;
- }
-
private:
ContentTime _from;
- TextType _type;
};
class ContentBitmapText : public ContentText
{
public:
- ContentBitmapText (ContentTime f, TextType type, boost::shared_ptr<Image> im, dcpomatic::Rect<double> r)
- : ContentText (f, type)
+ ContentBitmapText (ContentTime f, boost::shared_ptr<Image> im, dcpomatic::Rect<double> r)
+ : ContentText (f)
, sub (im, r)
{}
@@ -70,8 +64,8 @@ public:
class ContentStringText : public ContentText
{
public:
- ContentStringText (ContentTime f, TextType type, std::list<dcp::SubtitleString> s)
- : ContentText (f, type)
+ ContentStringText (ContentTime f, std::list<dcp::SubtitleString> s)
+ : ContentText (f)
, subs (s)
{}