diff options
author | fluxgen <fluxgen> | 2003-12-03 22:13:56 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-12-03 22:13:56 (GMT) |
commit | e76fda0c610ac86087eb4d97091af2b2018f29a0 (patch) | |
tree | 368b02b457926447fd69bb803b9178ebffb5f95e /src | |
parent | 7238e21fc58e8e8ec27b42a0907f98144ba4413e (diff) | |
download | fluxbox-e76fda0c610ac86087eb4d97091af2b2018f29a0.zip fluxbox-e76fda0c610ac86087eb4d97091af2b2018f29a0.tar.bz2 |
return type, default void
Diffstat (limited to 'src')
-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)(); } |