diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-03-30 23:28:29 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-04-01 23:43:00 +0200 |
| commit | d7f52153b4e50858dcd382fb66c51afba0bf6029 (patch) | |
| tree | 69fb67247e6f72adfa3a4c53e30c011ab0446d9c /src | |
| parent | 426c98459c8aad043d42535c0b36300c7dc63215 (diff) | |
DUPLICATE_ASSET_ID_IN_PKL: note -> pkl_id.
Diffstat (limited to 'src')
| -rw-r--r-- | src/verify.cc | 4 | ||||
| -rw-r--r-- | src/verify.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/verify.cc b/src/verify.cc index 0c993fd5..caf2db03 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1820,7 +1820,7 @@ verify_pkl(Context& context, shared_ptr<const PKL> pkl) set<string> uuid_set; for (auto asset: pkl->assets()) { if (!uuid_set.insert(asset->id()).second) { - context.add_note(VerificationNote::Code::DUPLICATE_ASSET_ID_IN_PKL, pkl->id(), pkl->file().get()); + context.add_note(VerificationNote(VerificationNote::Code::DUPLICATE_ASSET_ID_IN_PKL, pkl->file().get()).set_pkl_id(pkl->id())); break; } } @@ -2179,7 +2179,7 @@ dcp::note_to_string(VerificationNote note, function<string (string)> process_str case VerificationNote::Code::VALID_MAIN_PICTURE_ACTIVE_AREA: return compose("<MainPictureActiveaArea> %1x%2 is valid", note.size_in_pixels()->width, note.size_in_pixels()->height); case VerificationNote::Code::DUPLICATE_ASSET_ID_IN_PKL: - return compose("The PKL %1 has more than one asset with the same ID.", note.note().get()); + return compose("The PKL %1 has more than one asset with the same ID.", *note.pkl_id()); case VerificationNote::Code::DUPLICATE_ASSET_ID_IN_ASSETMAP: return compose("The ASSETMAP %1 has more than one asset with the same ID.", note.note().get()); case VerificationNote::Code::MISSING_SUBTITLE: diff --git a/src/verify.h b/src/verify.h index 6d93384a..07a480a7 100644 --- a/src/verify.h +++ b/src/verify.h @@ -510,7 +510,7 @@ public: */ VALID_MAIN_PICTURE_ACTIVE_AREA, /** A PKL has more than one asset with the same ID - * note contains the PKL ID + * pkl_id contains the PKL ID * file contains the PKL filename */ DUPLICATE_ASSET_ID_IN_PKL, |
