diff options
Diffstat (limited to 'src/FbTk/MacroCommand.hh')
-rw-r--r-- | src/FbTk/MacroCommand.hh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/FbTk/MacroCommand.hh b/src/FbTk/MacroCommand.hh index a7d9204..932ecaf 100644 --- a/src/FbTk/MacroCommand.hh +++ b/src/FbTk/MacroCommand.hh | |||
@@ -30,26 +30,26 @@ | |||
30 | namespace FbTk { | 30 | namespace FbTk { |
31 | 31 | ||
32 | /// executes a list of commands | 32 | /// executes a list of commands |
33 | class MacroCommand:public Command { | 33 | class MacroCommand:public Command<void> { |
34 | public: | 34 | public: |
35 | void add(RefCount<Command> &com); | 35 | void add(RefCount<Command<void> > &com); |
36 | size_t size() const; | 36 | size_t size() const; |
37 | virtual void execute(); | 37 | virtual void execute(); |
38 | 38 | ||
39 | private: | 39 | private: |
40 | std::vector<RefCount<Command> > m_commandlist; | 40 | std::vector<RefCount<Command<void> > > m_commandlist; |
41 | }; | 41 | }; |
42 | 42 | ||
43 | /// executes one command at a time | 43 | /// executes one command at a time |
44 | class ToggleCommand:public Command { | 44 | class ToggleCommand:public Command<void> { |
45 | public: | 45 | public: |
46 | ToggleCommand(); | 46 | ToggleCommand(); |
47 | void add(RefCount<Command> &com); | 47 | void add(RefCount<Command<void> > &com); |
48 | size_t size() const; | 48 | size_t size() const; |
49 | virtual void execute(); | 49 | virtual void execute(); |
50 | 50 | ||
51 | private: | 51 | private: |
52 | std::vector<RefCount<Command> > m_commandlist; | 52 | std::vector<RefCount<Command<void> > > m_commandlist; |
53 | size_t m_state; | 53 | size_t m_state; |
54 | }; | 54 | }; |
55 | 55 | ||