From 18570d83a23c0b510d086f2dfa6e3651fcf3430d Mon Sep 17 00:00:00 2001 From: Henrik Kinnunen Date: Thu, 18 Mar 2010 10:56:15 +0100 Subject: minor cleaning in MemFun.hh --- src/FbTk/MemFun.hh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/FbTk/MemFun.hh b/src/FbTk/MemFun.hh index c2c6b20..0425fc6 100644 --- a/src/FbTk/MemFun.hh +++ b/src/FbTk/MemFun.hh @@ -38,9 +38,7 @@ public: void operator ()() { (m_obj.*m_action)(); } - void call() { - (m_obj.*m_action)(); - } + private: Object& m_obj; Action m_action; @@ -150,7 +148,7 @@ public: void operator ()(IgnoreType1&, IgnoreType2&, IgnoreType3&) { BaseType::operator ()(); } - + template void operator ()(IgnoreType1&, IgnoreType2&) { BaseType::operator ()(); @@ -213,9 +211,9 @@ MemFunIgnoreArgs( Object& obj, ReturnType (Object:: *action)(Arg1) ) { return MemFun1IgnoreArgs(obj, action); } -/// Creates functor that ignores third argument. +/// Creates functor that ignores third argument. template -MemFun2IgnoreArgs +MemFun2IgnoreArgs MemFunIgnoreArgs( Object& obj, ReturnType (Object:: *action)(Arg1,Arg2) ) { return MemFun2IgnoreArgs(obj, action); } -- cgit v0.11.2