From a59288a1f2990ea01e1241b51cd994bc8400a038 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sun, 28 Aug 2016 23:52:11 +1000 Subject: [PATCH] Use XMLNode::set_property API in all Panner classes --- libs/panners/1in2out/panner_1in2out.cc | 4 ++-- libs/panners/2in2out/panner_2in2out.cc | 4 ++-- libs/panners/stereobalance/panner_balance.cc | 4 ++-- libs/panners/vbap/vbap.cc | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libs/panners/1in2out/panner_1in2out.cc b/libs/panners/1in2out/panner_1in2out.cc index 3dc3b53e2c..753c3a2dae 100644 --- a/libs/panners/1in2out/panner_1in2out.cc +++ b/libs/panners/1in2out/panner_1in2out.cc @@ -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; } diff --git a/libs/panners/2in2out/panner_2in2out.cc b/libs/panners/2in2out/panner_2in2out.cc index 9105eff713..2b14f6458c 100644 --- a/libs/panners/2in2out/panner_2in2out.cc +++ b/libs/panners/2in2out/panner_2in2out.cc @@ -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; } diff --git a/libs/panners/stereobalance/panner_balance.cc b/libs/panners/stereobalance/panner_balance.cc index 647c92ada3..f7379f9d6d 100644 --- a/libs/panners/stereobalance/panner_balance.cc +++ b/libs/panners/stereobalance/panner_balance.cc @@ -270,9 +270,9 @@ Pannerbalance::factory (boost::shared_ptr p, boost::shared_ptr