summaryrefslogtreecommitdiff
path: root/libs/ardour/processor.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-10-18 13:18:47 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-10-18 13:18:47 +0000
commit4085309cdb07f011756a9ab90047037ef9ad8f20 (patch)
tree22fb3764a0b8120a06397b3605c59589be5f78d8 /libs/ardour/processor.cc
parent9ec965a54eb9bafa6fa0cf4837809189affac49f (diff)
make Stateful::_id private and provide appropriate methods to set it, and use them throughout ardour
git-svn-id: svn://localhost/ardour2/branches/3.0@10222 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/processor.cc')
-rw-r--r--libs/ardour/processor.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/libs/ardour/processor.cc b/libs/ardour/processor.cc
index 8b54bd4f55..cf641fd7cf 100644
--- a/libs/ardour/processor.cc
+++ b/libs/ardour/processor.cc
@@ -150,9 +150,7 @@ Processor::set_state_2X (const XMLNode & node, int /*version*/)
set_name (prop->value ());
}
- if ((prop = (*i)->property ("id")) != 0) {
- _id = prop->value ();
- }
+ set_id (**i);
if ((prop = (*i)->property ("active")) != 0) {
bool const a = string_is_affirmative (prop->value ());
@@ -188,10 +186,7 @@ Processor::set_state (const XMLNode& node, int version)
Processor::set_name (prop->value());
}
- // may not exist for legacy 3.0 sessions
- if ((prop = node.property ("id")) != 0) {
- _id = prop->value();
- }
+ set_id (node);
XMLNodeList nlist = node.children();
XMLNodeIterator niter;