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:
Paul Davis 2007-11-09 15:07:42 +00:00
parent 1c060502b5
commit 3f774f711f
2 changed files with 6 additions and 1 deletions

View file

@ -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);

View file

@ -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;
}