diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-11 00:10:22 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-19 14:44:01 +0200 |
| commit | faf01b72ef48a364bad1234692c7780d00b47b7f (patch) | |
| tree | 3fb64beb6308080c4027b45841f8bdf6a5de215a /src/lib/audio_mapping.cc | |
| parent | ea5c2ebe5db07d01669d89cbd213754c85db36ef (diff) | |
Normalise XML attribute names to be camelCase (#2241).
Diffstat (limited to 'src/lib/audio_mapping.cc')
| -rw-r--r-- | src/lib/audio_mapping.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/audio_mapping.cc b/src/lib/audio_mapping.cc index 5e8bf4d04..3a1809ae8 100644 --- a/src/lib/audio_mapping.cc +++ b/src/lib/audio_mapping.cc @@ -169,8 +169,8 @@ AudioMapping::AudioMapping (cxml::ConstNodePtr node, int state_version) ); } else { set ( - i->number_attribute<int>("Input"), - i->number_attribute<int>("Output"), + number_attribute<int>(i, "Input", "input"), + number_attribute<int>(i, "Output", "output"), raw_convert<float>(i->content()) ); } @@ -227,8 +227,8 @@ AudioMapping::as_xml (xmlpp::Node* node) const for (int c = 0; c < _input_channels; ++c) { for (int d = 0; d < _output_channels; ++d) { auto t = node->add_child ("Gain"); - t->set_attribute ("Input", raw_convert<string> (c)); - t->set_attribute ("Output", raw_convert<string> (d)); + t->set_attribute("input", raw_convert<string>(c)); + t->set_attribute("output", raw_convert<string>(d)); t->add_child_text (raw_convert<string> (get (c, d))); } } |
