summaryrefslogtreecommitdiff
path: root/src/pkl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkl.cc')
-rw-r--r--src/pkl.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pkl.cc b/src/pkl.cc
index 621cf465..43c7d092 100644
--- a/src/pkl.cc
+++ b/src/pkl.cc
@@ -42,6 +42,7 @@
using std::string;
using boost::shared_ptr;
+using boost::optional;
using namespace dcp;
static string const pkl_interop_ns = "http://www.digicine.com/PROTO-ASDCP-PKL-20040311#";
@@ -115,7 +116,7 @@ PKL::write (boost::filesystem::path file, shared_ptr<const CertificateChain> sig
doc.write_to_file (file.string(), "UTF-8");
}
-string
+optional<string>
PKL::hash (string id) const
{
BOOST_FOREACH (shared_ptr<Asset> i, _asset_list) {
@@ -124,10 +125,10 @@ PKL::hash (string id) const
}
}
- DCP_ASSERT (false);
+ return optional<string>();
}
-string
+optional<string>
PKL::type (string id) const
{
BOOST_FOREACH (shared_ptr<Asset> i, _asset_list) {
@@ -136,5 +137,5 @@ PKL::type (string id) const
}
}
- DCP_ASSERT (false);
+ return optional<string>();
}