mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 15:16:25 +01:00
initialized Location::_locked in all cases
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2613 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
1c060502b5
commit
3f774f711f
2 changed files with 6 additions and 1 deletions
|
|
@ -62,12 +62,14 @@ class Location : public PBD::StatefulDestructible
|
|||
: _name (name),
|
||||
_start (sample_start),
|
||||
_end (sample_end),
|
||||
_flags (bits) { }
|
||||
_flags (bits),
|
||||
_locked (false) { }
|
||||
|
||||
Location () {
|
||||
_start = 0;
|
||||
_end = 0;
|
||||
_flags = Flags (0);
|
||||
_locked = false;
|
||||
}
|
||||
|
||||
Location (const Location& other);
|
||||
|
|
|
|||
|
|
@ -52,6 +52,9 @@ Location::Location (const Location& other)
|
|||
|
||||
_flags = Flags (_flags & ~IsStart);
|
||||
_flags = Flags (_flags & ~IsEnd);
|
||||
|
||||
/* copy is not locked even if original was */
|
||||
|
||||
_locked = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue