summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/misc/RowSetDrop.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/misc/RowSetDrop.cxx
parentc7d3440fed86c7ef986cdaf57dfe2017325ff190 (diff)
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/misc/RowSetDrop.cxx')
-rw-r--r--dbaccess/source/ui/misc/RowSetDrop.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/dbaccess/source/ui/misc/RowSetDrop.cxx b/dbaccess/source/ui/misc/RowSetDrop.cxx
index bcaf2e42caab..aa1858a57d1b 100644
--- a/dbaccess/source/ui/misc/RowSetDrop.cxx
+++ b/dbaccess/source/ui/misc/RowSetDrop.cxx
@@ -28,7 +28,6 @@
#include <vcl/msgbox.hxx>
#include <stringconstants.hxx>
#include <com/sun/star/sdbc/XRowUpdate.hpp>
-#include <functional>
using namespace dbaui;
using namespace ::com::sun::star::uno;
@@ -102,7 +101,7 @@ bool ORowSetImportExport::Read()
{
// check if there is any column to copy
if(std::find_if(m_aColumnMapping.begin(),m_aColumnMapping.end(),
- std::bind2nd(std::greater<sal_Int32>(),0)) == m_aColumnMapping.end())
+ [](sal_Int32 n) { return n > 0; }) == m_aColumnMapping.end())
return false;
bool bContinue = true;
if(m_aSelection.getLength())