summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/ui/browser/formadapter.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-12-05 10:46:13 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-12-05 16:08:50 +0100
commit3ea3c081721439644850ded0fe375b12e2e9b95c (patch)
treec0b2780c61bbf7751d2375d10c6612dc798ab112 /dbaccess/source/ui/browser/formadapter.cxx
parenttdf#96505 removed "L" literal (diff)
downloadcore-3ea3c081721439644850ded0fe375b12e2e9b95c.tar.gz
core-3ea3c081721439644850ded0fe375b12e2e9b95c.zip
Replace deprecated std::bin2nd with lambda in dbaccess
(as std::bind2nd is gone by default at least from recent libc++ in C++17 mode) Change-Id: Ib54bc40889aa45b5b9d4d3ab54baafbd260d3b25 Reviewed-on: https://gerrit.libreoffice.org/45861 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'dbaccess/source/ui/browser/formadapter.cxx')
-rw-r--r--dbaccess/source/ui/browser/formadapter.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/browser/formadapter.cxx b/dbaccess/source/ui/browser/formadapter.cxx
index ca01482f9bb7..7fd72dbd7464 100644
--- a/dbaccess/source/ui/browser/formadapter.cxx
+++ b/dbaccess/source/ui/browser/formadapter.cxx
@@ -1431,7 +1431,7 @@ sal_Int32 SbaXFormAdapter::implGetPos(const OUString& rName)
{
std::vector< OUString>::const_iterator aIter = std::find_if( m_aChildNames.begin(),
m_aChildNames.end(),
- std::bind2nd(std::equal_to< OUString>(),rName));
+ [&rName](OUString const & s) { return s == rName; });
if(aIter != m_aChildNames.end())
return aIter - m_aChildNames.begin();
@@ -1634,7 +1634,7 @@ void SAL_CALL SbaXFormAdapter::propertyChange(const css::beans::PropertyChangeEv
{
std::vector< css::uno::Reference< css::form::XFormComponent > >::const_iterator aIter = std::find_if( m_aChildren.begin(),
m_aChildren.end(),
- std::bind2nd(std::equal_to< css::uno::Reference< css::uno::XInterface > >(),evt.Source));
+ [&evt](css::uno::Reference< css::uno::XInterface > const & x) { return x == evt.Source; });
if(aIter != m_aChildren.end())
{
@@ -1654,7 +1654,7 @@ void SAL_CALL SbaXFormAdapter::disposing(const css::lang::EventObject& Source)
std::vector< css::uno::Reference< css::form::XFormComponent > >::const_iterator aIter = std::find_if( m_aChildren.begin(),
m_aChildren.end(),
- std::bind2nd(std::equal_to< css::uno::Reference< css::uno::XInterface > >(),Source.Source));
+ [&Source](css::uno::Reference< css::uno::XInterface > const & x) { return x == Source.Source; });
if(aIter != m_aChildren.end())
removeByIndex(aIter - m_aChildren.begin());
}