From e58704ff8142a937fe156048979e8a0dc1e8b460 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 9 Mar 2016 17:41:15 +0100 Subject: Avoid reserved identifiers Change-Id: Ie6a7e3fafd1394f93164a46fa0e7e149cf947ed2 --- include/comphelper/stl_types.hxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'include/comphelper') diff --git a/include/comphelper/stl_types.hxx b/include/comphelper/stl_types.hxx index e6c4a72f8bf0..acfc41976790 100644 --- a/include/comphelper/stl_types.hxx +++ b/include/comphelper/stl_types.hxx @@ -130,21 +130,21 @@ struct OInterfaceCompare } }; -template -class mem_fun1_t : public ::std::binary_function<_Tp*,_Arg,void> +template +class mem_fun1_t : public ::std::binary_function { - typedef void (_Tp::*_fun_type)(_Arg); + typedef void (Tp::*_fun_type)(Arg); public: - explicit mem_fun1_t(_fun_type __pf) : _M_f(__pf) {} - void operator()(_Tp* __p, _Arg __x) const { (__p->*_M_f)(__x); } + explicit mem_fun1_t(_fun_type pf) : M_f(pf) {} + void operator()(Tp* p, Arg x) const { (p->*M_f)(x); } private: - _fun_type _M_f; + _fun_type M_f; }; -template -inline mem_fun1_t<_Tp,_Arg> mem_fun(void (_Tp::*__f)(_Arg)) +template +inline mem_fun1_t mem_fun(void (Tp::*f)(Arg)) { - return mem_fun1_t<_Tp,_Arg>(__f); + return mem_fun1_t(f); } /** output iterator that appends OUStrings into an OUStringBuffer. -- cgit