1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 00:03:52 +02:00

Remove most uses of AUDACITY_OLD_STD

This commit is contained in:
Paul Licameli
2018-04-16 12:50:14 -04:00
parent 56c42e870e
commit 7a0475e39f
23 changed files with 12 additions and 120 deletions

View File

@@ -189,14 +189,6 @@ class PROFILE_DLL_API BlockFile /* not final, abstract */ {
ReadLock ( const BlockFile *p, const BlockFile::ReadUnlocker &u )
: ReadLockBase { p, u } {}
public:
#ifdef __AUDACITY_OLD_STD__
ReadLock (const ReadLock &that) : ReadLockBase( that ) {}
ReadLock &operator= (const ReadLock &that)
{
*((ReadLockBase*)this) = that;
return *this;
}
#endif
ReadLock(ReadLock&&that) : ReadLockBase{ std::move(that) } {}
using Suspension = std::unique_ptr< const BlockFile, ReadLocker >;
Suspension Suspend() const