1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 17:49:45 +02:00

Merge branch 'revert'

This commit is contained in:
Paul Licameli 2016-04-13 18:11:59 -04:00
commit 2207ebeb7d

View File

@ -302,6 +302,11 @@ class AUDACITY_DLL_API WaveTrack final : public Track {
Locker (const WaveTrack *pTrack)
: LockerBase{ pTrack }
{ pTrack->Lock(); }
Locker(Locker &&that) : LockerBase{std::move(that)} {}
Locker &operator= (Locker &&that) {
(LockerBase&)(*this) = std::move(that);
return *this;
}
};
bool CloseLock(); //similar to Lock but should be called when the project closes.