mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-04 17:49:45 +02:00
Simplify WaveTrack::Locker
This commit is contained in:
parent
5667d2c028
commit
02a2bdc92b
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user