diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-14 22:20:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-17 20:13:23 +0100 |
| commit | ad03415009155f8771ca48200f3c4a469c85277e (patch) | |
| tree | bd767c876112cfd6649f381ce31ca4ce30952c07 /src/cpl.h | |
| parent | 81badfe68a8de71e8c1a89bd63187231a3691d77 (diff) | |
Make CPL annotation_text optional.
Diffstat (limited to 'src/cpl.h')
| -rw-r--r-- | src/cpl.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -117,8 +117,8 @@ public: _issue_date = issue_date; } - /** @return contents of the <AnnotationText> node */ - std::string annotation_text () const { + /** @return contents of the <AnnotationText> 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; ///< <ContentTitleText> ContentKind _content_kind; ///< <ContentKind> std::vector<ContentVersion> _content_versions; |
