summaryrefslogtreecommitdiff
path: root/sd
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 /sd
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 'sd')
-rw-r--r--sd/source/ui/tools/PropertySet.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/tools/PropertySet.cxx b/sd/source/ui/tools/PropertySet.cxx
index eb7c06d0b0fa..dd1e6503446d 100644
--- a/sd/source/ui/tools/PropertySet.cxx
+++ b/sd/source/ui/tools/PropertySet.cxx
@@ -119,10 +119,10 @@ void SAL_CALL PropertySet::removePropertyChangeListener (
::std::find_if(
aRange.first,
aRange.second,
- o3tl::compose1(
- std::bind1st(std::equal_to<Reference<beans::XPropertyChangeListener> >(),
- rxListener),
- o3tl::select2nd<ChangeListenerContainer::value_type>())));
+ [&rxListener] (const ChangeListenerContainer::value_type& listener) {
+ return listener.second == rxListener;
+ }));
+
if (iListener != mpChangeListeners->end())
{
mpChangeListeners->erase(iListener);