summaryrefslogtreecommitdiff
path: root/src/dcp.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-01 00:47:53 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-01 00:47:53 +0100
commitd46f9684e7c4a77d07b4bb6f4b8c85dba2584597 (patch)
tree4ddeb09847f93600301422394936d544de9eba7d /src/dcp.cc
parent11990d194b5071b7f57ead972369dd9598f04ca3 (diff)
Simplify NameFormat stuff.
Diffstat (limited to 'src/dcp.cc')
-rw-r--r--src/dcp.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index ba72df8c..6af144dd 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -459,21 +459,21 @@ DCP::write_xml (
Standard standard,
XMLMetadata metadata,
shared_ptr<const CertificateChain> signer,
- FilenameFormat filename_format
+ NameFormat name_format
)
{
BOOST_FOREACH (shared_ptr<CPL> i, cpls ()) {
NameFormat::Map values;
values['t'] = "cpl";
values['i'] = i->id();
- i->write_xml (_directory / (filename_format.get(values) + ".xml"), standard, signer);
+ i->write_xml (_directory / (name_format.get(values) + ".xml"), standard, signer);
}
string const pkl_uuid = make_uuid ();
NameFormat::Map values;
values['t'] = "pkl";
values['i'] = pkl_uuid;
- boost::filesystem::path const pkl_path = write_pkl (filename_format.get(values) + ".xml", standard, pkl_uuid, metadata, signer);
+ boost::filesystem::path const pkl_path = write_pkl (name_format.get(values) + ".xml", standard, pkl_uuid, metadata, signer);
write_volindex (standard);
write_assetmap (standard, pkl_uuid, boost::filesystem::file_size (pkl_path), metadata);