From 4d94306389349a57b50523a692f261de7e2489d4 Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Tue, 8 Feb 2011 17:39:27 +0100 Subject: Port stuff to our private implementation of SGI extensions --- connectivity/source/drivers/ado/AColumn.cxx | 8 +++++--- connectivity/source/drivers/ado/AColumns.cxx | 8 +++++--- connectivity/source/drivers/ado/AConnection.cxx | 8 +++++--- 3 files changed, 15 insertions(+), 9 deletions(-) (limited to 'connectivity/source/drivers/ado') diff --git a/connectivity/source/drivers/ado/AColumn.cxx b/connectivity/source/drivers/ado/AColumn.cxx index a16747632c8b..7ac506d99cae 100644 --- a/connectivity/source/drivers/ado/AColumn.cxx +++ b/connectivity/source/drivers/ado/AColumn.cxx @@ -38,6 +38,8 @@ #include #include "ado/ACatalog.hxx" +#include + using namespace ::comphelper; using namespace connectivity::ado; @@ -225,11 +227,11 @@ void OAdoColumn::fillPropertyValues() ::comphelper::TStringMixEqualFunctor aCase(sal_False); OTypeInfoMap::const_iterator aFind = ::std::find_if(pTypeInfoMap->begin(), pTypeInfoMap->end(), - ::std::compose1( + ::o3tl::compose1( ::std::bind2nd(aCase, ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("VarBinary"))), - ::std::compose1( + ::o3tl::compose1( ::std::mem_fun(&OExtendedTypeInfo::getDBName), - ::std::select2nd()) + ::o3tl::select2nd()) ) ); diff --git a/connectivity/source/drivers/ado/AColumns.cxx b/connectivity/source/drivers/ado/AColumns.cxx index 377667bc863b..f2b7d0f146c1 100644 --- a/connectivity/source/drivers/ado/AColumns.cxx +++ b/connectivity/source/drivers/ado/AColumns.cxx @@ -44,6 +44,8 @@ #endif #include "resource/ado_res.hrc" +#include + using namespace connectivity::ado; using namespace connectivity; using namespace comphelper; @@ -95,11 +97,11 @@ sdbcx::ObjectType OColumns::appendObject( const ::rtl::OUString&, const Referenc // search for typeinfo where the typename is equal sTypeName OTypeInfoMap::const_iterator aFind = ::std::find_if(pTypeInfoMap->begin(), pTypeInfoMap->end(), - ::std::compose1( + ::o3tl::compose1( ::std::bind2nd(aCase, sTypeName), - ::std::compose1( + ::o3tl::compose1( ::std::mem_fun(&OExtendedTypeInfo::getDBName), - ::std::select2nd()) + ::o3tl::select2nd()) ) ); diff --git a/connectivity/source/drivers/ado/AConnection.cxx b/connectivity/source/drivers/ado/AConnection.cxx index 87e7c927a9e9..058ad8094703 100644 --- a/connectivity/source/drivers/ado/AConnection.cxx +++ b/connectivity/source/drivers/ado/AConnection.cxx @@ -44,6 +44,8 @@ #include #include "resource/ado_res.hrc" +#include + using namespace dbtools; using namespace connectivity::ado; using namespace com::sun::star::uno; @@ -605,11 +607,11 @@ const OExtendedTypeInfo* OConnection::getTypeInfoFromType(const OTypeInfoMap& _r // search for typeinfo where the typename is equal _sTypeName OTypeInfoMap::const_iterator aFind = ::std::find_if(_rTypeInfo.begin(), _rTypeInfo.end(), - ::std::compose1( + ::o3tl::compose1( ::std::bind2nd(aCase, _sTypeName), - ::std::compose1( + ::o3tl::compose1( ::std::mem_fun(&OExtendedTypeInfo::getDBName), - ::std::select2nd()) + ::o3tl::select2nd()) ) ); if(aFind != _rTypeInfo.end()) -- cgit