Tidying.
[libdcp.git] / src / reel_mxf.cc
index 24442691cd6fec3556c9d317f4d80c6b22540b53..1e7d94741dd7aeb6870ba2d0cb2a1b7bcc817244 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2019 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
     files in the program, then also delete it here.
 */
 
+
+/** @file  src/reel_mxf.cc
+ *  @brief ReelMXF class
+ */
+
+
 #include "reel_mxf.h"
 #include "util.h"
 #include "mxf.h"
 #include <libcxml/cxml.h>
 #include <libxml++/libxml++.h>
 
+
 using std::string;
 using std::shared_ptr;
 using boost::optional;
 using namespace dcp;
 
+
 ReelMXF::ReelMXF (shared_ptr<Asset> asset, optional<string> key_id)
        : _asset_ref (asset)
        , _key_id (key_id)
@@ -51,6 +59,7 @@ ReelMXF::ReelMXF (shared_ptr<Asset> asset, optional<string> key_id)
 
 }
 
+
 ReelMXF::ReelMXF (shared_ptr<const cxml::Node> node)
        : _asset_ref (remove_urn_uuid(node->string_child("Id")))
        , _key_id (node->optional_string_child ("KeyId"))
@@ -61,6 +70,7 @@ ReelMXF::ReelMXF (shared_ptr<const cxml::Node> node)
        }
 }
 
+
 bool
 ReelMXF::mxf_equals (shared_ptr<const ReelMXF> other, EqualityOptions opt, NoteHandler note) const
 {
@@ -85,7 +95,7 @@ void
 ReelMXF::write_to_cpl_mxf (xmlpp::Node* node) const
 {
         if (key_id ()) {
-               xmlpp::Node* hash = find_child (node, "Hash");
+               auto hash = find_child (node, "Hash");
                node->add_child_before(hash, "KeyId")->add_child_text("urn:uuid:" + key_id().get());
         }
 }