aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MacroCommand.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/MacroCommand.hh')
-rw-r--r--src/FbTk/MacroCommand.hh12
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 @@
30namespace FbTk { 30namespace FbTk {
31 31
32/// executes a list of commands 32/// executes a list of commands
33class MacroCommand:public Command { 33class MacroCommand:public Command<void> {
34public: 34public:
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
39private: 39private:
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
44class ToggleCommand:public Command { 44class ToggleCommand:public Command<void> {
45public: 45public:
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
51private: 51private:
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