diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-07-02 17:10:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-07 08:31:48 +0200 |
commit | db4741043d09437af871fa8ea9849ec37e946f9b (patch) | |
tree | 3ed043060e283bc6b3b386bacc4a6ff84e42f3ab /connectivity | |
parent | 307e528275cb91776e8f5560b3137c3c1649b39c (diff) |
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 <functional> 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 <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/ConnectionWrapper.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/commontools/TSortIndex.cxx | 4 | ||||
-rw-r--r-- | connectivity/source/cpool/ZConnectionPool.hxx | 2 | ||||
-rw-r--r-- | connectivity/source/inc/odbc/OResultSet.hxx | 4 | ||||
-rw-r--r-- | connectivity/source/manager/mdrivermanager.cxx | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/connectivity/source/commontools/ConnectionWrapper.cxx b/connectivity/source/commontools/ConnectionWrapper.cxx index 18f0b8cff56a..2ca1e2993ffb 100644 --- a/connectivity/source/commontools/ConnectionWrapper.cxx +++ b/connectivity/source/commontools/ConnectionWrapper.cxx @@ -173,7 +173,7 @@ Sequence< sal_Int8 > OConnectionWrapper::getUnoTunnelImplementationId() namespace { - class TPropertyValueLessFunctor : public std::binary_function< css::beans::PropertyValue,css::beans::PropertyValue,bool> + class TPropertyValueLessFunctor { public: TPropertyValueLessFunctor() diff --git a/connectivity/source/commontools/TSortIndex.cxx b/connectivity/source/commontools/TSortIndex.cxx index db67c5752683..10326a551be5 100644 --- a/connectivity/source/commontools/TSortIndex.cxx +++ b/connectivity/source/commontools/TSortIndex.cxx @@ -24,8 +24,8 @@ using namespace connectivity; -/// binary_function Functor object for class OSortIndex::TIntValuePairVector::value_type returntype is bool -struct TKeyValueFunc : std::binary_function<OSortIndex::TIntValuePairVector::value_type,OSortIndex::TIntValuePairVector::value_type,bool> +/// Functor object for class OSortIndex::TIntValuePairVector::value_type returntype is bool +struct TKeyValueFunc { OSortIndex* pIndex; diff --git a/connectivity/source/cpool/ZConnectionPool.hxx b/connectivity/source/cpool/ZConnectionPool.hxx index 890732848c90..04119d92d7a1 100644 --- a/connectivity/source/cpool/ZConnectionPool.hxx +++ b/connectivity/source/cpool/ZConnectionPool.hxx @@ -83,7 +83,7 @@ namespace connectivity // typedef TDigestHolder - struct TDigestLess : public std::binary_function< TDigestHolder, TDigestHolder, bool> + struct TDigestLess { bool operator() (const TDigestHolder& x, const TDigestHolder& y) const { diff --git a/connectivity/source/inc/odbc/OResultSet.hxx b/connectivity/source/inc/odbc/OResultSet.hxx index d1f75371cfe0..8b8218b9164d 100644 --- a/connectivity/source/inc/odbc/OResultSet.hxx +++ b/connectivity/source/inc/odbc/OResultSet.hxx @@ -67,8 +67,8 @@ namespace connectivity typedef std::pair<sal_Int64,sal_Int32> TVoidPtr; typedef std::allocator< TVoidPtr > TVoidAlloc; typedef std::vector<TVoidPtr> TVoidVector; - /// unary_function Functor object for class ZZ returntype is void - struct OOO_DLLPUBLIC_ODBCBASE TBookmarkPosMapCompare : std::binary_function< css::uno::Sequence<sal_Int8>, css::uno::Sequence<sal_Int8>, bool > + /// Functor object for class ZZ returntype is void + struct OOO_DLLPUBLIC_ODBCBASE TBookmarkPosMapCompare { bool operator()( const css::uno::Sequence<sal_Int8>& _rLH, const css::uno::Sequence<sal_Int8>& _rRH) const diff --git a/connectivity/source/manager/mdrivermanager.cxx b/connectivity/source/manager/mdrivermanager.cxx index 3905932fed85..b69e8646910e 100644 --- a/connectivity/source/manager/mdrivermanager.cxx +++ b/connectivity/source/manager/mdrivermanager.cxx @@ -212,7 +212,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) } /// an STL argorithm compatible predicate comparing two DriverAccess instances by their implementation names - struct CompareDriverAccessByName : public std::binary_function< DriverAccess, DriverAccess, bool > + struct CompareDriverAccessByName { bool operator()( const DriverAccess& lhs, const DriverAccess& rhs ) @@ -222,7 +222,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) }; /// and STL argorithm compatible predicate comparing a DriverAccess' impl name to a string - struct EqualDriverAccessToName : public std::binary_function< DriverAccess, OUString, bool > + struct EqualDriverAccessToName { OUString m_sImplName; explicit EqualDriverAccessToName(const OUString& _sImplName) : m_sImplName(_sImplName){} |