summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-31 23:22:17 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-01 23:43:00 +0200
commite567f3569669aa23675a31beff18228da57c123b (patch)
treeff4442a2f7a3094e971976a9d999f38e563f0313 /src
parent7e9736d5e07fb3f608ad78c251deb183f2989d5d (diff)
VALID_CONTENT_VERSION_LABEL_TEXT: note -> content_version.
Diffstat (limited to 'src')
-rw-r--r--src/verify.cc4
-rw-r--r--src/verify.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/verify.cc b/src/verify.cc
index 057fa84e..08b85d3d 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -1585,7 +1585,7 @@ verify_cpl(Context& context, shared_ptr<const CPL> cpl)
context.add_note(VerificationNote::Code::EMPTY_CONTENT_VERSION_LABEL_TEXT, cpl->file().get());
break;
} else {
- context.add_note(VerificationNote::Code::VALID_CONTENT_VERSION_LABEL_TEXT, version.label_text);
+ context.add_note(VerificationNote(VerificationNote::Code::VALID_CONTENT_VERSION_LABEL_TEXT).set_content_version(version.label_text));
}
}
@@ -2209,7 +2209,7 @@ dcp::note_to_string(VerificationNote note, function<string (string)> process_str
case VerificationNote::Code::EMPTY_CONTENT_VERSION_LABEL_TEXT:
return compose("The <LabelText> in a <ContentVersion> in CPL %1 is empty", note.cpl_id().get());
case VerificationNote::Code::VALID_CONTENT_VERSION_LABEL_TEXT:
- return compose("CPL has valid <ContentVersion> %1", note.note().get());
+ return compose("CPL has valid <ContentVersion> %1", *note.content_version());
case VerificationNote::Code::INVALID_CPL_NAMESPACE:
return compose("The namespace %1 in CPL %2 is invalid", note.note().get(), note.cpl_id().get());
case VerificationNote::Code::MISSING_CPL_CONTENT_VERSION:
diff --git a/src/verify.h b/src/verify.h
index ba742244..96945ca3 100644
--- a/src/verify.h
+++ b/src/verify.h
@@ -579,7 +579,9 @@ public:
* file contains the CPL filename
*/
EMPTY_CONTENT_VERSION_LABEL_TEXT,
- /** A <LabelText> inside a _<ContentVersion>_ is valid */
+ /** A <LabelText> inside a _<ContentVersion>_ is valid.
+ * content_version contains the label text.
+ */
VALID_CONTENT_VERSION_LABEL_TEXT,
/** The CPL namespace is not valid
* note contains the invalid namespace