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
This commit is contained in:
Paul Davis 2011-10-18 13:18:47 +00:00
parent 9ec965a54e
commit 4085309cdb
27 changed files with 82 additions and 96 deletions

View file

@ -44,8 +44,7 @@ ID::init ()
ID::ID ()
{
Glib::Mutex::Lock lm (*counter_lock);
_id = _counter++;
reset ();
}
ID::ID (const ID& other)
@ -58,6 +57,13 @@ ID::ID (string str)
string_assign (str);
}
void
ID::reset ()
{
Glib::Mutex::Lock lm (*counter_lock);
_id = _counter++;
}
int
ID::string_assign (string str)
{