summaryrefslogtreecommitdiff
path: root/src/cpl.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-20 22:00:15 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-23 00:36:57 +0100
commit8efd6f75450037e685d78cc29dcebd82fe922741 (patch)
tree7a85267a4ca6a8668b3b23fee8f3ebf7dbb76128 /src/cpl.cc
parent4481f844c5dc5d84ec63f354f44c54022e101388 (diff)
Rename MainSoundConfiguration::to_string() -> as_string().
Trying to be consistent with the rule that to_string is a method which converts a parameter to a string (implying processing) whereas as_string is a class member which returns a string representation of the thing.
Diffstat (limited to 'src/cpl.cc')
-rw-r--r--src/cpl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpl.cc b/src/cpl.cc
index f3e8f6dc..8576bae3 100644
--- a/src/cpl.cc
+++ b/src/cpl.cc
@@ -318,7 +318,7 @@ CPL::read_composition_metadata_asset(cxml::ConstNodePtr node, vector<dcp::Verifi
dcp::VerificationNote(
dcp::VerificationNote::Type::ERROR,
dcp::VerificationNote::Code::INVALID_MAIN_SOUND_CONFIGURATION,
- fmt::format("{} could not be parsed", _main_sound_configuration->to_string()),
+ fmt::format("{} could not be parsed", _main_sound_configuration->as_string()),
*_file
).set_cpl_id(_id)
);
@@ -539,7 +539,7 @@ CPL::maybe_write_composition_metadata_asset(xmlpp::Element* node, bool include_m
}
if (_main_sound_configuration) {
- cxml::add_child(meta, "MainSoundConfiguration", string("meta"))->add_child_text(_main_sound_configuration->to_string());
+ cxml::add_child(meta, "MainSoundConfiguration", string("meta"))->add_child_text(_main_sound_configuration->as_string());
}
cxml::add_child(meta, "MainSoundSampleRate", string("meta"))->add_child_text(fmt::to_string(*_main_sound_sample_rate) + " 1");