From 4085309cdb07f011756a9ab90047037ef9ad8f20 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 18 Oct 2011 13:18:47 +0000 Subject: 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 --- libs/ardour/source.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'libs/ardour/source.cc') 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); -- cgit v1.2.3