diff options
Diffstat (limited to 'src/FbTk/SimpleCommand.hh')
-rw-r--r-- | src/FbTk/SimpleCommand.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/SimpleCommand.hh b/src/FbTk/SimpleCommand.hh index 797f694..0ed864b 100644 --- a/src/FbTk/SimpleCommand.hh +++ b/src/FbTk/SimpleCommand.hh | |||
@@ -27,10 +27,10 @@ | |||
27 | namespace FbTk { | 27 | namespace FbTk { |
28 | 28 | ||
29 | /// a simple command | 29 | /// a simple command |
30 | template <typename Receiver> | 30 | template <typename Receiver, typename ReturnType=void> |
31 | class SimpleCommand: public Command { | 31 | class SimpleCommand: public Command { |
32 | public: | 32 | public: |
33 | typedef void (Receiver::* Action)(); | 33 | typedef ReturnType (Receiver::* Action)(); |
34 | SimpleCommand(Receiver &r, Action a): | 34 | SimpleCommand(Receiver &r, Action a): |
35 | m_receiver(r), m_action(a) { } | 35 | m_receiver(r), m_action(a) { } |
36 | void execute() { (m_receiver.*m_action)(); } | 36 | void execute() { (m_receiver.*m_action)(); } |