mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
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:
parent
9ec965a54e
commit
4085309cdb
27 changed files with 82 additions and 96 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue