mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
Use XMLNode::get/set_property API in ARDOUR::PhaseControl class
This commit is contained in:
parent
6311bd78bd
commit
1051d674eb
1 changed files with 4 additions and 5 deletions
|
|
@ -74,7 +74,7 @@ PhaseControl::get_state ()
|
|||
|
||||
string p;
|
||||
boost::to_string (_phase_invert, p);
|
||||
node.add_property("phase-invert", p);
|
||||
node.set_property ("phase-invert", p);
|
||||
|
||||
return node;
|
||||
}
|
||||
|
|
@ -84,10 +84,9 @@ PhaseControl::set_state (XMLNode const & node, int version)
|
|||
{
|
||||
AutomationControl::set_state (node, version);
|
||||
|
||||
const XMLProperty* prop;
|
||||
|
||||
if ((prop = node.property (X_("phase-invert"))) != 0) {
|
||||
set_phase_invert (boost::dynamic_bitset<> (prop->value ()));
|
||||
std::string str;
|
||||
if (node.get_property (X_("phase-invert"), str)) {
|
||||
set_phase_invert (boost::dynamic_bitset<> (str));
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue