Kaydet (Commit) efc05c0a authored tarafından Michael Stahl's avatar Michael Stahl

remove various crutches for boost::bind/boost::mem_fn

These aren't used any more, and the C++11 std equivalents don't use
get_pointer() overloads.

Change-Id: Ib97a6a595863e21a1621c63709ea2b28f6550fde
Reviewed-on: https://gerrit.libreoffice.org/24982Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 577b4e49
......@@ -151,11 +151,6 @@ namespace dxcanvas
T* mp;
};
// get_pointer() enables boost::mem_fn to recognize COMReference
template<class T> inline T * get_pointer(COMReference<T> const& p)
{
return p.get();
}
}
......
......@@ -571,16 +571,6 @@ public:
inline static SAL_WARN_UNUSED_RESULT Reference< interface_type > SAL_CALL query( XInterface * pInterface );
};
/// @cond INTERNAL
/** Enables boost::mem_fn and boost::bind to recognize Reference.
*/
template <typename T>
inline T * get_pointer( Reference<T> const& r )
{
return r.get();
}
/// @endcond
}
}
}
......
......@@ -343,12 +343,6 @@ int cow_wrapper_client::queryUnmodified() const
a.swap(b);
}
// to enable boost::mem_fn on cow_wrapper
template<class T, class P> inline T * get_pointer( const cow_wrapper<T,P>& r )
{
return r.get();
}
}
#endif /* INCLUDED_O3TL_COW_WRAPPER_HXX */
......
......@@ -240,16 +240,6 @@ public:
}
};
/// @cond INTERNAL
/** Enables boost::mem_fn and boost::bind to recognize Reference.
*/
template <typename T>
inline T * get_pointer( Reference<T> const& r )
{
return r.get();
}
/// @endcond
} // namespace rtl
#endif /* ! INCLUDED_RTL_REF_HXX */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment