aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-12-03 22:13:56 (GMT)
committerfluxgen <fluxgen>2003-12-03 22:13:56 (GMT)
commite76fda0c610ac86087eb4d97091af2b2018f29a0 (patch)
tree368b02b457926447fd69bb803b9178ebffb5f95e /src/FbTk
parent7238e21fc58e8e8ec27b42a0907f98144ba4413e (diff)
downloadfluxbox_pavel-e76fda0c610ac86087eb4d97091af2b2018f29a0.zip
fluxbox_pavel-e76fda0c610ac86087eb4d97091af2b2018f29a0.tar.bz2
return type, default void
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)(); }