summaryrefslogtreecommitdiff
path: root/src/cpl.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-14 22:20:06 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-17 20:13:23 +0100
commitad03415009155f8771ca48200f3c4a469c85277e (patch)
treebd767c876112cfd6649f381ce31ca4ce30952c07 /src/cpl.h
parent81badfe68a8de71e8c1a89bd63187231a3691d77 (diff)
Make CPL annotation_text optional.
Diffstat (limited to 'src/cpl.h')
-rw-r--r--src/cpl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpl.h b/src/cpl.h
index c2a8b07d..3bfffcb5 100644
--- a/src/cpl.h
+++ b/src/cpl.h
@@ -117,8 +117,8 @@ public:
_issue_date = issue_date;
}
- /** @return contents of the &lt;AnnotationText&gt; node */
- std::string annotation_text () const {
+ /** @return contents of the &lt;AnnotationText&gt; node, if present */
+ boost::optional<std::string> annotation_text () const {
return _annotation_text;
}
@@ -290,7 +290,7 @@ private:
std::string _issuer;
std::string _creator;
std::string _issue_date;
- std::string _annotation_text;
+ boost::optional<std::string> _annotation_text;
std::string _content_title_text; ///< &lt;ContentTitleText&gt;
ContentKind _content_kind; ///< &lt;ContentKind&gt;
std::vector<ContentVersion> _content_versions;