1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

static CommandManager::Get()...

... not member functions of AudacityProject
This commit is contained in:
Paul Licameli
2019-04-26 17:17:04 -04:00
parent 805af452a4
commit 4ba4d0978b
23 changed files with 94 additions and 82 deletions

View File

@@ -16,6 +16,7 @@
#include "audacity/Types.h"
#include "../ClientData.h"
#include "CommandFunctors.h"
#include "CommandFlag.h"
@@ -99,9 +100,13 @@ using CommandNumericIDHash = std::unordered_map<int, CommandListEntry*>;
class AudacityProject;
class CommandContext;
class AUDACITY_DLL_API CommandManager final : public XMLTagHandler
class AUDACITY_DLL_API CommandManager final
: public XMLTagHandler
, public ClientData::Base
{
public:
static CommandManager &Get( AudacityProject &project );
static const CommandManager &Get( const AudacityProject &project );
//
// Constructor / Destructor