13
0

Use XMLNode::set_property API in all Panner classes

This commit is contained in:
Tim Mayberry 2016-08-28 23:52:11 +10:00
parent f9af328bca
commit a59288a1f2
4 changed files with 8 additions and 8 deletions

View File

@ -336,9 +336,9 @@ XMLNode&
Panner1in2out::get_state ()
{
XMLNode& root (Panner::get_state ());
root.add_property (X_("uri"), _descriptor.panner_uri);
root.set_property (X_("uri"), _descriptor.panner_uri);
/* this is needed to allow new sessions to load with old Ardour: */
root.add_property (X_("type"), _descriptor.name);
root.set_property (X_("type"), _descriptor.name);
return root;
}

View File

@ -479,9 +479,9 @@ XMLNode&
Panner2in2out::get_state ()
{
XMLNode& root (Panner::get_state ());
root.add_property (X_("uri"), _descriptor.panner_uri);
root.set_property (X_("uri"), _descriptor.panner_uri);
/* this is needed to allow new sessions to load with old Ardour: */
root.add_property (X_("type"), _descriptor.name);
root.set_property (X_("type"), _descriptor.name);
return root;
}

View File

@ -270,9 +270,9 @@ Pannerbalance::factory (boost::shared_ptr<Pannable> p, boost::shared_ptr<Speaker
Pannerbalance::get_state ()
{
XMLNode& root (Panner::get_state ());
root.add_property (X_("uri"), _descriptor.panner_uri);
root.set_property (X_("uri"), _descriptor.panner_uri);
/* this is needed to allow new sessions to load with old Ardour: */
root.add_property (X_("type"), _descriptor.name);
root.set_property (X_("type"), _descriptor.name);
return root;
}

View File

@ -366,9 +366,9 @@ XMLNode&
VBAPanner::get_state ()
{
XMLNode& node (Panner::get_state());
node.add_property (X_("uri"), _descriptor.panner_uri);
node.set_property (X_("uri"), _descriptor.panner_uri);
/* this is needed to allow new sessions to load with old Ardour: */
node.add_property (X_("type"), _descriptor.name);
node.set_property (X_("type"), _descriptor.name);
return node;
}