summaryrefslogtreecommitdiff
path: root/libs/ardour/source.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/source.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/source.cc')
-rw-r--r--libs/ardour/source.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/libs/ardour/source.cc b/libs/ardour/source.cc
index 35e1417fb4..4c582f3ad7 100644
--- a/libs/ardour/source.cc
+++ b/libs/ardour/source.cc
@@ -100,7 +100,7 @@ Source::get_state ()
node->add_property ("name", name());
node->add_property ("type", _type.to_string());
node->add_property (X_("flags"), enum_2_string (_flags));
- _id.print (buf, sizeof (buf));
+ id().print (buf, sizeof (buf));
node->add_property ("id", buf);
if (_timestamp != 0) {
@@ -122,9 +122,7 @@ Source::set_state (const XMLNode& node, int version)
return -1;
}
- if ((prop = node.property ("id")) != 0) {
- _id = prop->value ();
- } else {
+ if (!set_id (node)) {
return -1;
}
@@ -221,7 +219,7 @@ Source::get_transients_path () const
s = _session.analysis_dir ();
parts.push_back (s);
- s = _id.to_s();
+ s = id().to_s();
s += '.';
s += TransientDetector::operational_identifier();
parts.push_back (s);