summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/SimpleCommand.hh4
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 @@
27namespace FbTk { 27namespace FbTk {
28 28
29/// a simple command 29/// a simple command
30template <typename Receiver> 30template <typename Receiver, typename ReturnType=void>
31class SimpleCommand: public Command { 31class SimpleCommand: public Command {
32public: 32public:
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)(); }