From e42602d3f8ca95c26c87425a42ebcb17db88cd72 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 4 Dec 2023 20:52:59 +0100 Subject: [PATCH] Cleanup: another longer variable. --- src/smpte_subtitle_asset.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/smpte_subtitle_asset.cc b/src/smpte_subtitle_asset.cc index 0ff1d7ef..f907e189 100644 --- a/src/smpte_subtitle_asset.cc +++ b/src/smpte_subtitle_asset.cc @@ -400,7 +400,7 @@ SMPTESubtitleAsset::xml_as_string () const void -SMPTESubtitleAsset::write (boost::filesystem::path p) const +SMPTESubtitleAsset::write(boost::filesystem::path path) const { EncryptionContext enc (key(), Standard::SMPTE); @@ -453,16 +453,16 @@ SMPTESubtitleAsset::write (boost::filesystem::path p) const /* This header size is a guess. Empirically it seems that each subtitle reference is 90 bytes, and we need some extra. The default size is not enough for some feature-length PNG sub projects (see DCP-o-matic #1561). */ - ASDCP::Result_t r = writer.OpenWrite(dcp::filesystem::fix_long_path(p).string().c_str(), writer_info, descriptor, _subtitles.size() * 90 + 16384); + ASDCP::Result_t r = writer.OpenWrite(dcp::filesystem::fix_long_path(path).string().c_str(), writer_info, descriptor, _subtitles.size() * 90 + 16384); if (ASDCP_FAILURE (r)) { - boost::throw_exception (FileError ("could not open subtitle MXF for writing", p.string(), r)); + boost::throw_exception(FileError("could not open subtitle MXF for writing", path.string(), r)); } _raw_xml = xml_as_string (); r = writer.WriteTimedTextResource (*_raw_xml, enc.context(), enc.hmac()); if (ASDCP_FAILURE (r)) { - boost::throw_exception (MXFFileError ("could not write XML to timed text resource", p.string(), r)); + boost::throw_exception(MXFFileError("could not write XML to timed text resource", path.string(), r)); } /* Font payload */ @@ -479,7 +479,7 @@ SMPTESubtitleAsset::write (boost::filesystem::path p) const buffer.Size (j->data.size()); r = writer.WriteAncillaryResource (buffer, enc.context(), enc.hmac()); if (ASDCP_FAILURE(r)) { - boost::throw_exception (MXFFileError ("could not write font to timed text resource", p.string(), r)); + boost::throw_exception(MXFFileError("could not write font to timed text resource", path.string(), r)); } } } @@ -494,14 +494,14 @@ SMPTESubtitleAsset::write (boost::filesystem::path p) const buffer.Size (si->png_image().size()); r = writer.WriteAncillaryResource (buffer, enc.context(), enc.hmac()); if (ASDCP_FAILURE(r)) { - boost::throw_exception (MXFFileError ("could not write PNG data to timed text resource", p.string(), r)); + boost::throw_exception(MXFFileError("could not write PNG data to timed text resource", path.string(), r)); } } } writer.Finalize (); - _file = p; + _file = path; } bool -- 2.30.2