From db4741043d09437af871fa8ea9849ec37e946f9b Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sun, 2 Jul 2017 17:10:53 +0200 Subject: C++11 remove std::binary_function bases from functors std::binary_function is deprecated since C++11 and removed in C++17 90% done with regexp magic. removed obsolete includes. The std::binary_function base class was used by deprecated std::bind2nd, this was solved in individual commits. The members first_argument_type and second_argument_type were used in chart2/source/controller/dialogs/DataBrowserModel.cxx: DataBrowserModel::implColumnLess and are inlined in this commit. Change-Id: I60ded60a8d4afd59e15ac15a58e18d2498c9be5a Reviewed-on: https://gerrit.libreoffice.org/39659 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basegfx/source/workbench/convexhull.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'basegfx') diff --git a/basegfx/source/workbench/convexhull.cxx b/basegfx/source/workbench/convexhull.cxx index 3e728777ace8..dda785668866 100644 --- a/basegfx/source/workbench/convexhull.cxx +++ b/basegfx/source/workbench/convexhull.cxx @@ -18,7 +18,6 @@ */ #include -#include #include #include "bezierclip.hxx" @@ -43,7 +42,7 @@ template double theta( const PointType& p1, const PointType& p /* Model of LessThanComparable for theta sort. * Uses the theta function from Sedgewick: Algorithms in XXX, chapter 24 */ -template class ThetaCompare : public std::binary_function< const PointType&, const PointType&, bool > +template class ThetaCompare { public: explicit ThetaCompare( const PointType& rRefPoint ) : maRefPoint( rRefPoint ) {} -- cgit v1.2.3