summaryrefslogtreecommitdiff
path: root/src/lib/content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-23 15:10:11 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-23 15:10:11 +0100
commita5c629cb9b638b67a0e4c2d26fe9ab2e124bf0eb (patch)
tree6cd463704f413259516e2888704272a371a108a6 /src/lib/content.cc
parentdf17bbd25da69fc38eb2dcd8b4a2531cf0bab0bc (diff)
Tidy up after mass rename.
Diffstat (limited to 'src/lib/content.cc')
-rw-r--r--src/lib/content.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/content.cc b/src/lib/content.cc
index 7a8088289..c1812b9fd 100644
--- a/src/lib/content.cc
+++ b/src/lib/content.cc
@@ -437,9 +437,9 @@ Content::take_settings_from (shared_ptr<const Content> c)
audio->take_settings_from (c->audio);
}
- list<shared_ptr<TextContent> >::iterator i = caption.begin ();
- list<shared_ptr<TextContent> >::const_iterator j = c->caption.begin ();
- while (i != caption.end() && j != c->caption.end()) {
+ list<shared_ptr<TextContent> >::iterator i = text.begin ();
+ list<shared_ptr<TextContent> >::const_iterator j = c->text.begin ();
+ while (i != text.end() && j != c->text.end()) {
(*i)->take_settings_from (*j);
++i;
++j;
@@ -447,19 +447,19 @@ Content::take_settings_from (shared_ptr<const Content> c)
}
shared_ptr<TextContent>
-Content::only_caption () const
+Content::only_text () const
{
- DCPOMATIC_ASSERT (caption.size() < 2);
- if (caption.empty ()) {
+ DCPOMATIC_ASSERT (text.size() < 2);
+ if (text.empty ()) {
return shared_ptr<TextContent> ();
}
- return caption.front ();
+ return text.front ();
}
shared_ptr<TextContent>
-Content::caption_of_original_type (TextType type) const
+Content::text_of_original_type (TextType type) const
{
- BOOST_FOREACH (shared_ptr<TextContent> i, caption) {
+ BOOST_FOREACH (shared_ptr<TextContent> i, text) {
if (i->original_type() == type) {
return i;
}