summaryrefslogtreecommitdiff
path: root/svx/source/form/formcontroller.cxx
diff options
context:
space:
mode:
authorJorenz Paragas <j.paragas.237@gmail.com>2015-08-01 15:04:02 -0700
committerNoel Grandin <noelgrandin@gmail.com>2015-08-03 07:01:48 +0000
commit4a2e0fa708bb00d35febe9e8939dcc0c2197e2f4 (patch)
tree1e45183fba95e8e541fa088f787e206095884ecc /svx/source/form/formcontroller.cxx
parentb03f6f45f4a13d97b0b62ea7c54b75dd14a5ad5e (diff)
tdf#91112: replace o3tl::compose1 with lambdas in sd and svx
Change-Id: I53c73c6210ba3eec4d73949a329a35ad7834220e Reviewed-on: https://gerrit.libreoffice.org/17468 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/form/formcontroller.cxx')
-rw-r--r--svx/source/form/formcontroller.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx
index 8c88f64e4394..c90760180efe 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -507,7 +507,7 @@ struct UpdateAllListeners : public ::std::unary_function< Reference< XDispatch >
bool operator()( const Reference< XDispatch >& _rxDispatcher ) const
{
static_cast< svx::OSingleFeatureDispatcher* >( _rxDispatcher.get() )->updateAllListeners();
- // the return is a dummy only so we can use this struct in a o3tl::compose1 call
+ // the return is a dummy only so we can use this struct in a lambda expression
return true;
}
};
@@ -2607,11 +2607,9 @@ void FormController::updateAllDispatchers() const
::std::for_each(
m_aFeatureDispatchers.begin(),
m_aFeatureDispatchers.end(),
- ::o3tl::compose1(
- UpdateAllListeners(),
- ::o3tl::select2nd< DispatcherContainer::value_type >()
- )
- );
+ [] (const DispatcherContainer::value_type& dispatcher) {
+ UpdateAllListeners()(dispatcher.second);
+ });
}