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/location.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libs/ardour/location.cc') diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index b6a09d863a..ed9f34ff8b 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -419,10 +419,8 @@ Location::set_state (const XMLNode& node, int /*version*/) return -1; } - if ((prop = node.property ("id")) == 0) { + if (!set_id (node)) { warning << _("XML node for Location has no ID information") << endmsg; - } else { - _id = prop->value (); } if ((prop = node.property ("name")) == 0) { -- cgit v1.2.3