diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-21 01:57:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-21 01:57:06 +0100 |
| commit | 76e3325a16cdf6d7220a61e2b5cfdb9c804cc32c (patch) | |
| tree | 8c1b5e5dc2cec265469a0d8018b6d7396b089432 /src/pkl.cc | |
| parent | 6c3db78c3d20ef064fa2a0ef38e65ca1ae69adb3 (diff) | |
Use enum class for the things in types.h
Diffstat (limited to 'src/pkl.cc')
| -rw-r--r-- | src/pkl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -56,9 +56,9 @@ PKL::PKL (boost::filesystem::path file) pkl.read_file (file); if (pkl.namespace_uri() == pkl_interop_ns) { - _standard = INTEROP; + _standard = Standard::INTEROP; } else if (pkl.namespace_uri() == pkl_smpte_ns) { - _standard = SMPTE; + _standard = Standard::SMPTE; } else { boost::throw_exception (XMLError ("Unrecognised packing list namesapce " + pkl.namespace_uri())); } @@ -85,7 +85,7 @@ PKL::write (boost::filesystem::path file, shared_ptr<const CertificateChain> sig { xmlpp::Document doc; xmlpp::Element* pkl; - if (_standard == INTEROP) { + if (_standard == Standard::INTEROP) { pkl = doc.create_root_node("PackingList", pkl_interop_ns); } else { pkl = doc.create_root_node("PackingList", pkl_smpte_ns); |
