diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2011-02-08 19:31:15 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2011-02-08 19:31:40 +0100 |
commit | 9dafa8b12c307d3e28eba7bdf138d5a2f8768eac (patch) | |
tree | 9cb46e543cf236108e79071a7448d668caab0809 /chart2 | |
parent | aa5968f33a850dc791c61b830d7eae4123eb29a3 (diff) |
more std:: -> o3tl:: build fixes
Diffstat (limited to 'chart2')
6 files changed, 15 insertions, 9 deletions
diff --git a/chart2/source/controller/accessibility/AccessibleBase.cxx b/chart2/source/controller/accessibility/AccessibleBase.cxx index bb63345bfd2f..ab3ebe750ff7 100644 --- a/chart2/source/controller/accessibility/AccessibleBase.cxx +++ b/chart2/source/controller/accessibility/AccessibleBase.cxx @@ -61,6 +61,7 @@ #include <vcl/window.hxx> #include <algorithm> +#include <o3tl/compat_functional.hxx> #include "ChartElementFactory.hxx" @@ -272,7 +273,7 @@ bool AccessibleBase::ImplUpdateChildren() aAccChildren.reserve( aModelChildren.size()); ::std::transform( m_aChildOIDMap.begin(), m_aChildOIDMap.end(), ::std::back_inserter( aAccChildren ), - ::std::select1st< ChildOIDMap::value_type >()); + ::o3tl::select1st< ChildOIDMap::value_type >()); ::std::sort( aModelChildren.begin(), aModelChildren.end()); diff --git a/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx b/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx index 46dfb064896d..e61821a117f5 100644 --- a/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx @@ -78,6 +78,7 @@ #include <vector> #include <algorithm> #include <functional> +#include <o3tl/compat_functional.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::chart; @@ -1482,7 +1483,7 @@ uno::Sequence< ::rtl::OUString > SAL_CALL ChartDocumentWrapper::getAvailableServ ::std::transform( rMap.begin(), rMap.end(), aResult.getArray(), - ::std::select1st< tServiceNameMap::value_type >() ); + ::o3tl::select1st< tServiceNameMap::value_type >() ); return aResult; diff --git a/chart2/source/controller/dialogs/DialogModel.cxx b/chart2/source/controller/dialogs/DialogModel.cxx index 9e382d4427c4..8a86162061ae 100644 --- a/chart2/source/controller/dialogs/DialogModel.cxx +++ b/chart2/source/controller/dialogs/DialogModel.cxx @@ -59,6 +59,7 @@ #include <iterator> #include <functional> #include <numeric> +#include <o3tl/compat_functional.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::chart2; @@ -122,10 +123,10 @@ OUString lcl_ConvertRole( const OUString & rRoleString, bool bFromInternalToUI ) { tTranslationMap::const_iterator aIt( ::std::find_if( aTranslationMap.begin(), aTranslationMap.end(), - ::std::compose1( ::std::bind2nd( + ::o3tl::compose1( ::std::bind2nd( ::std::equal_to< tTranslationMap::mapped_type >(), rRoleString ), - ::std::select2nd< tTranslationMap::value_type >()))); + ::o3tl::select2nd< tTranslationMap::value_type >()))); if( aIt != aTranslationMap.end()) aResult = (*aIt).first; diff --git a/chart2/source/inc/CommonFunctors.hxx b/chart2/source/inc/CommonFunctors.hxx index 7160af550495..a58bde00d381 100644 --- a/chart2/source/inc/CommonFunctors.hxx +++ b/chart2/source/inc/CommonFunctors.hxx @@ -30,6 +30,7 @@ #include <algorithm> #include <functional> +#include <o3tl/compat_functional.hxx> #include <rtl/math.hxx> #include <com/sun/star/uno/Any.hxx> #include <rtl/ustring.hxx> @@ -206,10 +207,10 @@ template< class MapType > findValueInMap( const MapType & rMap, const typename MapType::mapped_type & rData ) { return ::std::find_if( rMap.begin(), rMap.end(), - ::std::compose1( ::std::bind2nd( + ::o3tl::compose1( ::std::bind2nd( ::std::equal_to< typename MapType::mapped_type >(), rData ), - ::std::select2nd< typename MapType::value_type >())); + ::o3tl::select2nd< typename MapType::value_type >())); } /** Functor that deletes the object behind the given pointer by calling the diff --git a/chart2/source/inc/ContainerHelper.hxx b/chart2/source/inc/ContainerHelper.hxx index e7524b797d12..8358cf09562e 100644 --- a/chart2/source/inc/ContainerHelper.hxx +++ b/chart2/source/inc/ContainerHelper.hxx @@ -34,6 +34,7 @@ #include <algorithm> #include <functional> +#include <o3tl/compat_functional.hxx> namespace chart { @@ -154,7 +155,7 @@ template< class Map > { ::com::sun::star::uno::Sequence< typename Map::key_type > aResult( rCont.size()); ::std::transform( rCont.begin(), rCont.end(), aResult.getArray(), - ::std::select1st< typename Map::value_type >()); + ::o3tl::select1st< typename Map::value_type >()); return aResult; } @@ -171,7 +172,7 @@ template< class Map > { ::com::sun::star::uno::Sequence< typename Map::mapped_type > aResult( rCont.size()); ::std::transform( rCont.begin(), rCont.end(), aResult.getArray(), - ::std::select2nd< typename Map::value_type >()); + ::o3tl::select2nd< typename Map::value_type >()); return aResult; } diff --git a/chart2/source/model/template/ChartTypeManager.cxx b/chart2/source/model/template/ChartTypeManager.cxx index 4a866b2f0fa6..00ebab147245 100644 --- a/chart2/source/model/template/ChartTypeManager.cxx +++ b/chart2/source/model/template/ChartTypeManager.cxx @@ -54,6 +54,7 @@ #include <algorithm> #include <iterator> #include <functional> +#include <o3tl/compat_functional.hxx> using namespace ::com::sun::star; @@ -575,7 +576,7 @@ uno::Sequence< OUString > SAL_CALL ChartTypeManager::getAvailableServiceNames() // get own default templates ::std::transform( rMap.begin(), rMap.end(), ::std::back_inserter( aServices ), - ::std::select1st< tTemplateMapType::value_type >()); + ::o3tl::select1st< tTemplateMapType::value_type >()); // add components that were registered in the context's factory uno::Reference< container::XContentEnumerationAccess > xEnumAcc( |