all repos — fluxbox @ e76fda0c610ac86087eb4d97091af2b2018f29a0

custom fork of the fluxbox windowmanager

return type, default void
fluxgen fluxgen
commit

e76fda0c610ac86087eb4d97091af2b2018f29a0

parent

7238e21fc58e8e8ec27b42a0907f98144ba4413e

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/FbTk/SimpleCommand.hhsrc/FbTk/SimpleCommand.hh

@@ -27,10 +27,10 @@

namespace FbTk { /// a simple command -template <typename Receiver> +template <typename Receiver, typename ReturnType=void> class SimpleCommand: public Command { public: - typedef void (Receiver::* Action)(); + typedef ReturnType (Receiver::* Action)(); SimpleCommand(Receiver &r, Action a): m_receiver(r), m_action(a) { } void execute() { (m_receiver.*m_action)(); }