diff options
author | Daniel Robertson <danlrobertson89@gmail.com> | 2015-08-11 14:51:35 -0400 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-08-11 22:29:12 +0000 |
commit | 87130a4e18347d055331ff53da3b1a79548ff24a (patch) | |
tree | f1d3cfe7b7a2a9e7c9b3efbeddf23da9e7b9845e /chart2/source/controller/accessibility | |
parent | ae6afadbc0c6ffcdbfd0db6bb3b0166295d5effd (diff) |
tdf#92459 Cleanup unclear lambdas
Replace lambdas used to select the first/second member of a pair with
the new simplified select1st/2nd from o3tl/compat_functional. There
should be no side effects due to this change.
Change-Id: I17f37796e0c4defe96a10aa491d192adb9eebb89
Reviewed-on: https://gerrit.libreoffice.org/17656
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'chart2/source/controller/accessibility')
-rw-r--r-- | chart2/source/controller/accessibility/AccessibleBase.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/accessibility/AccessibleBase.cxx b/chart2/source/controller/accessibility/AccessibleBase.cxx index dc3832dd5a29..d092640d0ea2 100644 --- a/chart2/source/controller/accessibility/AccessibleBase.cxx +++ b/chart2/source/controller/accessibility/AccessibleBase.cxx @@ -48,6 +48,7 @@ #include <vcl/window.hxx> #include <vcl/graph.hxx> #include <vcl/settings.hxx> +#include <o3tl/compat_functional.hxx> #include <algorithm> @@ -251,8 +252,7 @@ bool AccessibleBase::ImplUpdateChildren() aAccChildren.reserve( aModelChildren.size()); ::std::transform( m_aChildOIDMap.begin(), m_aChildOIDMap.end(), ::std::back_inserter( aAccChildren ), - []( const ::std::pair<ObjectIdentifier, tAccessible>& cp ) - { return cp.first; } ); + ::o3tl::select1st< ChildOIDMap::value_type >() ); ::std::sort( aModelChildren.begin(), aModelChildren.end()); |