mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Make objects attached to AudacityProject non-copyable...
... except for Tags; also some uses of final and explicit This caught a mistake in Scrubbing.cpp
This commit is contained in:
@@ -108,13 +108,14 @@ inline UndoPush operator | (UndoPush a, UndoPush b)
|
||||
inline UndoPush operator & (UndoPush a, UndoPush b)
|
||||
{ return static_cast<UndoPush>(static_cast<int>(a) & static_cast<int>(b)); }
|
||||
|
||||
class AUDACITY_DLL_API UndoManager
|
||||
class AUDACITY_DLL_API UndoManager final
|
||||
: public ClientData::Base
|
||||
{
|
||||
public:
|
||||
static UndoManager &Get( AudacityProject &project );
|
||||
static const UndoManager &Get( const AudacityProject &project );
|
||||
|
||||
explicit
|
||||
UndoManager( AudacityProject &project );
|
||||
~UndoManager();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user