summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-04-09 23:02:17 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-09 23:02:17 +0200
commiteb13aa0c40ed192930cab95a0a484c88be245cfb (patch)
treed8e3bdb96435a168352b678df3803649f5331bcd /src/lib
parentd857562046c3b3e83c5f7ef9788a2863db4cc1ca (diff)
White space: dcp_subtitle_content.{cc,h}
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dcp_subtitle_content.cc30
-rw-r--r--src/lib/dcp_subtitle_content.h14
2 files changed, 22 insertions, 22 deletions
diff --git a/src/lib/dcp_subtitle_content.cc b/src/lib/dcp_subtitle_content.cc
index 21159fcac..b285a78fe 100644
--- a/src/lib/dcp_subtitle_content.cc
+++ b/src/lib/dcp_subtitle_content.cc
@@ -42,18 +42,18 @@ using boost::optional;
using namespace dcpomatic;
-DCPSubtitleContent::DCPSubtitleContent (boost::filesystem::path path)
- : Content (path)
+DCPSubtitleContent::DCPSubtitleContent(boost::filesystem::path path)
+ : Content(path)
{
- text.push_back (make_shared<TextContent>(this, TextType::OPEN_SUBTITLE, TextType::OPEN_SUBTITLE));
+ text.push_back(make_shared<TextContent>(this, TextType::OPEN_SUBTITLE, TextType::OPEN_SUBTITLE));
}
DCPSubtitleContent::DCPSubtitleContent(cxml::ConstNodePtr node, boost::optional<boost::filesystem::path> film_directory, int version)
- : Content (node, film_directory)
- , _length (node->number_child<ContentTime::Type> ("Length"))
+ : Content(node, film_directory)
+ , _length(node->number_child<ContentTime::Type>("Length"))
{
list<string> notes;
- text = TextContent::from_xml (this, node, version, notes);
+ text = TextContent::from_xml(this, node, version, notes);
}
void
@@ -69,10 +69,10 @@ DCPSubtitleContent::examine(shared_ptr<const Film> film, shared_ptr<Job> job, bo
set_video_frame_rate(film, smpte->edit_rate().numerator);
}
- boost::mutex::scoped_lock lm (_mutex);
+ boost::mutex::scoped_lock lm(_mutex);
/* Default to turning these subtitles on */
- only_text()->set_use (true);
+ only_text()->set_use(true);
_length = ContentTime::from_seconds(subtitle_asset->latest_text_out().as_seconds());
@@ -115,26 +115,26 @@ DCPSubtitleContent::add_fonts(shared_ptr<TextContent> content, shared_ptr<dcp::T
DCPTime
-DCPSubtitleContent::full_length (shared_ptr<const Film> film) const
+DCPSubtitleContent::full_length(shared_ptr<const Film> film) const
{
- FrameRateChange const frc (film, shared_from_this());
- return DCPTime (_length, frc);
+ FrameRateChange const frc(film, shared_from_this());
+ return DCPTime(_length, frc);
}
DCPTime
-DCPSubtitleContent::approximate_length () const
+DCPSubtitleContent::approximate_length() const
{
- return DCPTime (_length, FrameRateChange());
+ return DCPTime(_length, FrameRateChange());
}
string
-DCPSubtitleContent::summary () const
+DCPSubtitleContent::summary() const
{
return path_summary() + " " + _("[subtitles]");
}
string
-DCPSubtitleContent::technical_summary () const
+DCPSubtitleContent::technical_summary() const
{
return Content::technical_summary() + " - " + _("DCP XML subtitles");
}
diff --git a/src/lib/dcp_subtitle_content.h b/src/lib/dcp_subtitle_content.h
index dde3139a8..5b1c8426d 100644
--- a/src/lib/dcp_subtitle_content.h
+++ b/src/lib/dcp_subtitle_content.h
@@ -24,12 +24,12 @@
class DCPSubtitleContent : public DCPSubtitle, public Content
{
public:
- DCPSubtitleContent (boost::filesystem::path);
- DCPSubtitleContent (cxml::ConstNodePtr, boost::optional<boost::filesystem::path> film_directory, int);
+ DCPSubtitleContent(boost::filesystem::path);
+ DCPSubtitleContent(cxml::ConstNodePtr, boost::optional<boost::filesystem::path> film_directory, int);
- void examine (std::shared_ptr<const Film> film, std::shared_ptr<Job>, bool tolerant) override;
- std::string summary () const override;
- std::string technical_summary () const override;
+ void examine(std::shared_ptr<const Film> film, std::shared_ptr<Job>, bool tolerant) override;
+ std::string summary() const override;
+ std::string technical_summary() const override;
void as_xml(
xmlpp::Element* element,
@@ -38,8 +38,8 @@ public:
boost::optional<boost::filesystem::path> film_directory
) const override;
- dcpomatic::DCPTime full_length (std::shared_ptr<const Film> film) const override;
- dcpomatic::DCPTime approximate_length () const override;
+ dcpomatic::DCPTime full_length(std::shared_ptr<const Film> film) const override;
+ dcpomatic::DCPTime approximate_length() const override;
private:
void add_fonts(std::shared_ptr<TextContent> content, std::shared_ptr<dcp::TextAsset> subtitle_asset);