Tweak comment.
[libdcp.git] / src / pkl.cc
index b41fc1857e20197aa4629ab718c6e09c8860cb39..23a4f533d0b4d5bea115d7e6ee74ca4660ad5ab6 100644 (file)
@@ -11,13 +11,7 @@ PKL::PKL (string file)
        issue_date = string_node ("IssueDate");
        issuer = string_node ("Issuer");
        creator = string_node ("Creator");
-       asset_list = sub_node<PKLAssetList> ("AssetList");
-}
-
-PKLAssetList::PKLAssetList (xmlpp::Node const * node)
-       : XMLNode (node)
-{
-       assets = sub_nodes<PKLAsset> ("Asset");
+       assets = sub_nodes<PKLAsset> ("AssetList", "Asset");
 }
 
 PKLAsset::PKLAsset (xmlpp::Node const * node)
@@ -26,7 +20,7 @@ PKLAsset::PKLAsset (xmlpp::Node const * node)
        id = string_node ("Id");
        annotation_text = optional_string_node ("AnnotationText");
        hash = string_node ("Hash");
-       size = int_node ("Size");
+       size = int64_node ("Size");
        type = string_node ("Type");
 }