mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-20 14:20:06 +02:00
Revert "Simplify WaveTrack::Locker"
This reverts commit 02a2bdc92b7a572fefb37f72f71a2c7cd69c986c.
This commit is contained in:
parent
02a2bdc92b
commit
def73e80ef
@ -302,6 +302,11 @@ class AUDACITY_DLL_API WaveTrack final : public Track {
|
|||||||
Locker (const WaveTrack *pTrack)
|
Locker (const WaveTrack *pTrack)
|
||||||
: LockerBase{ pTrack }
|
: LockerBase{ pTrack }
|
||||||
{ pTrack->Lock(); }
|
{ 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.
|
bool CloseLock(); //similar to Lock but should be called when the project closes.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user