summaryrefslogtreecommitdiff
path: root/src/verify.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-29 15:19:07 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-01 23:43:00 +0200
commit814abc3a7afca78c8877d2c9478364c327db7734 (patch)
treee25526e6db17f5040caa5f1d8bdf18bfdb125814 /src/verify.cc
parent6ebb73004a5568b19228ff699cd68aadc8abbcff (diff)
INVALID_LANGUAGE: note -> language.
Diffstat (limited to 'src/verify.cc')
-rw-r--r--src/verify.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/verify.cc b/src/verify.cc
index 2608ab77..41ecda0b 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -444,7 +444,7 @@ verify_language_tag(Context& context, string tag)
try {
LanguageTag test (tag);
} catch (LanguageTagError &) {
- context.add_note(VerificationNote::Code::INVALID_LANGUAGE, tag);
+ context.add_note(VerificationNote(VerificationNote::Code::INVALID_LANGUAGE).set_language(tag));
}
}
@@ -1568,7 +1568,7 @@ verify_cpl(Context& context, shared_ptr<const CPL> cpl)
LanguageTag::RegionSubtag test(terr);
} catch (...) {
if (terr != "001") {
- context.add_note(VerificationNote::Code::INVALID_LANGUAGE, terr);
+ context.add_note(VerificationNote(VerificationNote::Code::INVALID_LANGUAGE).set_language(terr));
valid = false;
}
}
@@ -2012,7 +2012,7 @@ dcp::note_to_string(VerificationNote note, function<string (string)> process_str
case VerificationNote::Code::INVALID_STANDARD:
return "This DCP does not use the SMPTE standard.";
case VerificationNote::Code::INVALID_LANGUAGE:
- return compose("The DCP specifies a language '%1' which does not conform to the RFC 5646 standard.", note.note().get());
+ return compose("The DCP specifies a language '%1' which does not conform to the RFC 5646 standard.", *note.language());
case VerificationNote::Code::VALID_RELEASE_TERRITORY:
return compose("Valid release territory %1.", *note.territory());
case VerificationNote::Code::INVALID_PICTURE_SIZE_IN_PIXELS: