1
0
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:
Paul Licameli
2019-07-02 18:57:53 -04:00
parent 6adb2abc98
commit 2a06b10884
26 changed files with 61 additions and 4 deletions

View File

@@ -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();