1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 22:12:58 +02:00

Shrink the command functor objects by using more subclasses...

... Let virtual function dispatch do the work, don't write our own dispatch!
This commit is contained in:
Paul Licameli
2016-02-24 15:17:06 -05:00
parent 09b4dfc5a2
commit 0c182c3c0b
3 changed files with 60 additions and 80 deletions

View File

@@ -30,7 +30,7 @@ class AUDACITY_DLL_API CommandFunctor
public:
CommandFunctor(){};
virtual ~CommandFunctor(){};
virtual void operator()(int index = 0, const wxEvent *e = NULL) = 0;
virtual void operator()(int index, const wxEvent *e) = 0;
};
struct MenuBarListEntry