diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-24 14:13:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-24 14:13:37 +0100 |
| commit | 2ae92dcc97765deb2845dd07a338858aeb375cb3 (patch) | |
| tree | 6f0f8dec0b81a0a7d56e8dbc3a87f0986dae6748 /src/asset.cc | |
| parent | 13db82c73af330ffbc7a813cd38c5bef36d5b54c (diff) | |
No-op: whitespace.
Diffstat (limited to 'src/asset.cc')
| -rw-r--r-- | src/asset.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/asset.cc b/src/asset.cc index 5760c905..3d397831 100644 --- a/src/asset.cc +++ b/src/asset.cc @@ -53,7 +53,7 @@ void Asset::write_to_pkl (xmlpp::Node* node, Standard standard) const { DCP_ASSERT (!_file.empty ()); - + xmlpp::Node* asset = node->add_child ("Asset"); asset->add_child("Id")->add_child_text ("urn:uuid:" + _id); asset->add_child("AnnotationText")->add_child_text (_id); @@ -76,11 +76,11 @@ Asset::write_to_assetmap (xmlpp::Node* node, boost::filesystem::path root) const boost::filesystem::canonical (root), boost::filesystem::canonical (_file) ); - + if (!path) { throw MiscError (String::compose ("Asset %1 is not within the directory %2", _file, root)); } - + chunk->add_child("Path")->add_child_text (path.get().string ()); chunk->add_child("VolumeIndex")->add_child_text ("1"); chunk->add_child("Offset")->add_child_text ("0"); @@ -91,7 +91,7 @@ string Asset::hash (function<void (float)> progress) const { DCP_ASSERT (!_file.empty ()); - + if (_hash.empty ()) { _hash = make_digest (_file, progress); } @@ -122,4 +122,4 @@ Asset::set_file (boost::filesystem::path file) const _file = boost::filesystem::absolute (file); _hash.clear (); } - + |
