all repos — fluxbox @ 18570d83a23c0b510d086f2dfa6e3651fcf3430d

custom fork of the fluxbox windowmanager

minor cleaning in MemFun.hh
Henrik Kinnunen fluxgen@fluxbox.org
commit

18570d83a23c0b510d086f2dfa6e3651fcf3430d

parent

0504de454a0a3bf06466029940af480e3caaa8b2

1 files changed, 4 insertions(+), 6 deletions(-)

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

@@ -38,9 +38,7 @@

void operator ()() { (m_obj.*m_action)(); } - void call() { - (m_obj.*m_action)(); - } + private: Object& m_obj; Action m_action;

@@ -150,7 +148,7 @@ template <typename IgnoreType1, typename IgnoreType2, typename IgnoreType3>

void operator ()(IgnoreType1&, IgnoreType2&, IgnoreType3&) { BaseType::operator ()(); } - + template <typename IgnoreType1, typename IgnoreType2> void operator ()(IgnoreType1&, IgnoreType2&) { BaseType::operator ()();

@@ -213,9 +211,9 @@ MemFunIgnoreArgs( Object& obj, ReturnType (Object:: *action)(Arg1) ) {

return MemFun1IgnoreArgs<ReturnType, Object, Arg1>(obj, action); } -/// Creates functor that ignores third argument. +/// Creates functor that ignores third argument. template <typename ReturnType, typename Object, typename Arg1, typename Arg2> -MemFun2IgnoreArgs<ReturnType, Object, Arg1, Arg2> +MemFun2IgnoreArgs<ReturnType, Object, Arg1, Arg2> MemFunIgnoreArgs( Object& obj, ReturnType (Object:: *action)(Arg1,Arg2) ) { return MemFun2IgnoreArgs<ReturnType, Object, Arg1, Arg2>(obj, action); }