summaryrefslogtreecommitdiff
path: root/src/cpl.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-08-27 12:47:17 +0100
committerCarl Hetherington <cth@carlh.net>2012-08-27 12:47:17 +0100
commit082d6561785efb6edf22ca42ac04e809c6c92d43 (patch)
treebb227834a734b5d79f77d1f77d50539b0573547b /src/cpl.cc
parent9848bbe16ac822a2c089422e83194113e77d8433 (diff)
Make ContentVersion Id node optional. Improve error message slightly.
Diffstat (limited to 'src/cpl.cc')
-rw-r--r--src/cpl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpl.cc b/src/cpl.cc
index 649d54b7..80962f4f 100644
--- a/src/cpl.cc
+++ b/src/cpl.cc
@@ -50,7 +50,7 @@ CPL::CPL (string file)
ContentVersion::ContentVersion (xmlpp::Node const * node)
: XMLNode (node)
{
- id = string_node ("Id");
+ id = optional_string_node ("Id");
label_text = string_node ("LabelText");
done ();
}