1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-19 17:40:15 +02:00

Revert "Simplify WaveTrack::Locker"

This reverts commit 02a2bdc92b7a572fefb37f72f71a2c7cd69c986c.
This commit is contained in:
Paul Licameli 2016-04-13 18:11:45 -04:00
parent 02a2bdc92b
commit def73e80ef

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.