From 7339c360ef55fdde99907e1e34a231386ebc534e Mon Sep 17 00:00:00 2001 From: Daniel Robertson Date: Sun, 2 Aug 2015 20:12:35 -0400 Subject: tdf92459 replace select1st/2nd in dbaccess Replace all uses of deprecated features in the o3tl with lambda expressions in dbaccess. Change-Id: I865bb5db5257e985a0eed0110874d6b29892fcfb Reviewed-on: https://gerrit.libreoffice.org/17483 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/inc/pch/precompiled_dba.hxx | 1 - dbaccess/inc/pch/precompiled_dbu.hxx | 1 - dbaccess/source/core/dataaccess/definitioncontainer.cxx | 1 - dbaccess/source/core/dataaccess/documentevents.cxx | 4 ++-- dbaccess/source/ui/browser/genericcontroller.cxx | 4 ++-- dbaccess/source/ui/control/tabletree.cxx | 1 - dbaccess/source/ui/dlg/DbAdminImpl.cxx | 4 ++-- dbaccess/source/ui/misc/DExport.cxx | 1 - dbaccess/source/ui/misc/WColumnSelect.cxx | 1 - dbaccess/source/ui/misc/WCopyTable.cxx | 1 - 10 files changed, 6 insertions(+), 13 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/inc/pch/precompiled_dba.hxx b/dbaccess/inc/pch/precompiled_dba.hxx index d097d7933c88..0e5c763eb7b0 100644 --- a/dbaccess/inc/pch/precompiled_dba.hxx +++ b/dbaccess/inc/pch/precompiled_dba.hxx @@ -309,7 +309,6 @@ #include #include #include -#include #include #include #include diff --git a/dbaccess/inc/pch/precompiled_dbu.hxx b/dbaccess/inc/pch/precompiled_dbu.hxx index 89f563bc8446..9a4fa62e8577 100644 --- a/dbaccess/inc/pch/precompiled_dbu.hxx +++ b/dbaccess/inc/pch/precompiled_dbu.hxx @@ -349,7 +349,6 @@ #include #include #include -#include #include #include #include diff --git a/dbaccess/source/core/dataaccess/definitioncontainer.cxx b/dbaccess/source/core/dataaccess/definitioncontainer.cxx index e9034ce52a8b..6e0c78113922 100644 --- a/dbaccess/source/core/dataaccess/definitioncontainer.cxx +++ b/dbaccess/source/core/dataaccess/definitioncontainer.cxx @@ -36,7 +36,6 @@ #include #include #include -#include using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; diff --git a/dbaccess/source/core/dataaccess/documentevents.cxx b/dbaccess/source/core/dataaccess/documentevents.cxx index 40c0d18ff07b..9966a23880fa 100644 --- a/dbaccess/source/core/dataaccess/documentevents.cxx +++ b/dbaccess/source/core/dataaccess/documentevents.cxx @@ -26,7 +26,6 @@ #include #include -#include namespace dbaccess { @@ -204,7 +203,8 @@ namespace dbaccess m_pData->rEventsData.begin(), m_pData->rEventsData.end(), aNames.getArray(), - ::o3tl::select1st< DocumentEventsData::value_type >() + []( const ::std::pair< DocumentEventsData::key_type, DocumentEventsData::mapped_type >& cp ) + { return cp.first; } ); return aNames; } diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx index 3f7d765b2a8d..df4066e2c519 100644 --- a/dbaccess/source/ui/browser/genericcontroller.cxx +++ b/dbaccess/source/ui/browser/genericcontroller.cxx @@ -58,7 +58,6 @@ #include #include #include -#include #include #include #include @@ -1469,7 +1468,8 @@ Sequence< ::sal_Int16 > SAL_CALL OGenericUnoController::getSupportedCommandGroup ::std::transform( aCmdHashMap.begin(), aCmdHashMap.end(), aCommandGroups.getArray(), - ::o3tl::select1st< CommandHashMap::value_type >() + []( const ::std::pair< CommandHashMap::key_type, CommandHashMap::mapped_type >& cp ) + { return cp.first; } ); return aCommandGroups; diff --git a/dbaccess/source/ui/control/tabletree.cxx b/dbaccess/source/ui/control/tabletree.cxx index d2434126c177..5d5ec4cf0d06 100644 --- a/dbaccess/source/ui/control/tabletree.cxx +++ b/dbaccess/source/ui/control/tabletree.cxx @@ -45,7 +45,6 @@ #include "svtools/treelistentry.hxx" #include -#include namespace dbaui { diff --git a/dbaccess/source/ui/dlg/DbAdminImpl.cxx b/dbaccess/source/ui/dlg/DbAdminImpl.cxx index 97c6452ce663..03c30af11c2d 100644 --- a/dbaccess/source/ui/dlg/DbAdminImpl.cxx +++ b/dbaccess/source/ui/dlg/DbAdminImpl.cxx @@ -70,7 +70,6 @@ #include #include -#include namespace dbaui { @@ -773,7 +772,8 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS ::std::transform(m_aIndirectPropTranslator.begin(), m_aIndirectPropTranslator.end(), ::std::insert_iterator(aIndirectProps,aIndirectProps.begin()), - ::o3tl::select2nd()); + []( const ::std::pair< MapInt2String::key_type, MapInt2String::mapped_type >& cp ) + { return cp.second; }); // now check the to-be-preserved props ::std::vector< sal_Int32 > aRemoveIndexes; diff --git a/dbaccess/source/ui/misc/DExport.cxx b/dbaccess/source/ui/misc/DExport.cxx index fbdeab6659f2..81f6531f932b 100644 --- a/dbaccess/source/ui/misc/DExport.cxx +++ b/dbaccess/source/ui/misc/DExport.cxx @@ -45,7 +45,6 @@ #include "FieldDescriptions.hxx" #include "UITools.hxx" #include -#include #include #include #include diff --git a/dbaccess/source/ui/misc/WColumnSelect.cxx b/dbaccess/source/ui/misc/WColumnSelect.cxx index ff363f93fe5d..9904a6efb3d4 100644 --- a/dbaccess/source/ui/misc/WColumnSelect.cxx +++ b/dbaccess/source/ui/misc/WColumnSelect.cxx @@ -30,7 +30,6 @@ #include #include "dbustrings.hrc" #include -#include using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx b/dbaccess/source/ui/misc/WCopyTable.cxx index a629a8deb7c2..1e28171738ea 100644 --- a/dbaccess/source/ui/misc/WCopyTable.cxx +++ b/dbaccess/source/ui/misc/WCopyTable.cxx @@ -61,7 +61,6 @@ #include #include -#include using namespace ::dbaui; using namespace ::com::sun::star::uno; -- cgit