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

Simplify WaveTrack::Locker

This commit is contained in:
Paul Licameli 2016-04-12 12:03:01 -04:00
parent 5667d2c028
commit 02a2bdc92b

View File

@ -302,11 +302,6 @@ 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.