aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/MemFun.hh10
1 files 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:
38 void operator ()() { 38 void operator ()() {
39 (m_obj.*m_action)(); 39 (m_obj.*m_action)();
40 } 40 }
41 void call() { 41
42 (m_obj.*m_action)();
43 }
44private: 42private:
45 Object& m_obj; 43 Object& m_obj;
46 Action m_action; 44 Action m_action;
@@ -150,7 +148,7 @@ public:
150 void operator ()(IgnoreType1&, IgnoreType2&, IgnoreType3&) { 148 void operator ()(IgnoreType1&, IgnoreType2&, IgnoreType3&) {
151 BaseType::operator ()(); 149 BaseType::operator ()();
152 } 150 }
153 151
154 template <typename IgnoreType1, typename IgnoreType2> 152 template <typename IgnoreType1, typename IgnoreType2>
155 void operator ()(IgnoreType1&, IgnoreType2&) { 153 void operator ()(IgnoreType1&, IgnoreType2&) {
156 BaseType::operator ()(); 154 BaseType::operator ()();
@@ -213,9 +211,9 @@ MemFunIgnoreArgs( Object& obj, ReturnType (Object:: *action)(Arg1) ) {
213 return MemFun1IgnoreArgs<ReturnType, Object, Arg1>(obj, action); 211 return MemFun1IgnoreArgs<ReturnType, Object, Arg1>(obj, action);
214} 212}
215 213
216/// Creates functor that ignores third argument. 214/// Creates functor that ignores third argument.
217template <typename ReturnType, typename Object, typename Arg1, typename Arg2> 215template <typename ReturnType, typename Object, typename Arg1, typename Arg2>
218MemFun2IgnoreArgs<ReturnType, Object, Arg1, Arg2> 216MemFun2IgnoreArgs<ReturnType, Object, Arg1, Arg2>
219MemFunIgnoreArgs( Object& obj, ReturnType (Object:: *action)(Arg1,Arg2) ) { 217MemFunIgnoreArgs( Object& obj, ReturnType (Object:: *action)(Arg1,Arg2) ) {
220 return MemFun2IgnoreArgs<ReturnType, Object, Arg1, Arg2>(obj, action); 218 return MemFun2IgnoreArgs<ReturnType, Object, Arg1, Arg2>(obj, action);
221} 219}