From 903f23a46edac723fd8b8f9b4bf1236fc0dd05da Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 30 Apr 2022 20:33:01 +0200 Subject: Rename PKL::write to PKL::write_xml for consistency. --- src/dcp.cc | 2 +- src/pkl.cc | 2 +- src/pkl.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/dcp.cc b/src/dcp.cc index 8924a4b8..df5c89b4 100644 --- a/src/dcp.cc +++ b/src/dcp.cc @@ -445,7 +445,7 @@ DCP::write_xml (shared_ptr signer, NameFormat name_forma NameFormat::Map values; values['t'] = "pkl"; auto pkl_path = _directory / name_format.get(values, "_" + pkl->id() + ".xml"); - pkl->write (pkl_path, signer); + pkl->write_xml (pkl_path, signer); if (!_asset_map) { _asset_map = AssetMap( diff --git a/src/pkl.cc b/src/pkl.cc index 5846b68d..5465d578 100644 --- a/src/pkl.cc +++ b/src/pkl.cc @@ -94,7 +94,7 @@ PKL::add_asset (std::string id, boost::optional annotation_text, st void -PKL::write (boost::filesystem::path file, shared_ptr signer) const +PKL::write_xml (boost::filesystem::path file, shared_ptr signer) const { xmlpp::Document doc; xmlpp::Element* pkl; diff --git a/src/pkl.h b/src/pkl.h index baa8a3e2..8b1b88a3 100644 --- a/src/pkl.h +++ b/src/pkl.h @@ -67,7 +67,7 @@ public: void clear_assets(); void add_asset (std::string id, boost::optional annotation_text, std::string hash, int64_t size, std::string type); - void write (boost::filesystem::path file, std::shared_ptr signer) const; + void write_xml (boost::filesystem::path file, std::shared_ptr signer) const; /** @return the most recent disk file used to read or write this PKL, if there is one */ boost::optional file () const { -- cgit v1.2.3