diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-01 21:19:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-01-07 22:46:21 +0100 |
| commit | 05e0890d4bb991fc321ac2e11993eba37d20e077 (patch) | |
| tree | c014fb6294b5516c680832288552d86f05b1af63 /src/verify.cc | |
| parent | 38bf41a1b3fc0228ea44f69b2f145a7fa2a9aabb (diff) | |
Cleanup: rename PKL::asset_list -> assets for consistency.
Diffstat (limited to 'src/verify.cc')
| -rw-r--r-- | src/verify.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/verify.cc b/src/verify.cc index 3c5d180a..c8009741 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1248,7 +1248,7 @@ pkl_has_encrypted_assets(shared_ptr<const DCP> dcp, shared_ptr<const PKL> pkl) } } - for (auto i: pkl->asset_list()) { + for (auto i: pkl->assets()) { if (find(encrypted.begin(), encrypted.end(), i->id()) != encrypted.end()) { return true; } @@ -1450,7 +1450,7 @@ verify_cpl( /* Check that any PKL with a single CPL has its AnnotationText the same as the CPL's ContentTitleText */ optional<string> required_annotation_text; - for (auto j: i->asset_list()) { + for (auto j: i->assets()) { /* See if this is a CPL */ for (auto k: dcp->cpls()) { if (j->id() == k->id()) { @@ -1628,7 +1628,7 @@ verify_pkl( } set<string> uuid_set; - for (auto asset: pkl->asset_list()) { + for (auto asset: pkl->assets()) { if (!uuid_set.insert(asset->id()).second) { notes.push_back({VerificationNote::Type::ERROR, VerificationNote::Code::DUPLICATE_ASSET_ID_IN_PKL, pkl->id(), pkl->file().get()}); break; |
