summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanlrobertson <danlrobertson89@gmail.com>2015-06-30 15:51:41 -0400
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2015-07-15 23:50:50 +0000
commit5a61d7f049a81d6e747d9d097f364ae45f58697b (patch)
tree9ee54c6ba9457068575447e933bfd297384b2fc1
parentd151ed35ad4c4e7aa9fbb807930fcf91dea2eba7 (diff)
tdf#92459 replace unary_function in forms
Remove all instances of classes that are derived from the now depreciated unary_function and binary_function with lambda expressions. Change-Id: Iab662159b8b8554e10dfe6886ee803da78a937ed Reviewed-on: https://gerrit.libreoffice.org/16631 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r--forms/source/xforms/convert.cxx6
-rw-r--r--forms/source/xforms/datatyperepository.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/forms/source/xforms/convert.cxx b/forms/source/xforms/convert.cxx
index be41419df6ea..7ed865b6b2f6 100644
--- a/forms/source/xforms/convert.cxx
+++ b/forms/source/xforms/convert.cxx
@@ -23,7 +23,6 @@
#include "unohelper.hxx"
#include <algorithm>
#include <functional>
-#include <o3tl/compat_functional.hxx>
#include <rtl/math.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
@@ -39,7 +38,6 @@ using xforms::Convert;
using com::sun::star::uno::Any;
using com::sun::star::uno::makeAny;
using namespace std;
-using namespace o3tl;
using namespace utl;
typedef com::sun::star::util::Date UNODate;
@@ -307,7 +305,9 @@ Convert::Types_t Convert::getTypes()
{
Types_t aTypes( maMap.size() );
transform( maMap.begin(), maMap.end(), aTypes.getArray(),
- o3tl::select1st<Map_t::value_type>() );
+ [] (::std::pair<const Type_t, Convert_t>& mpair) -> Type_t
+ { return mpair.first; }
+ );
return aTypes;
}
diff --git a/forms/source/xforms/datatyperepository.cxx b/forms/source/xforms/datatyperepository.cxx
index 55c45b67686e..ac5081a79378 100644
--- a/forms/source/xforms/datatyperepository.cxx
+++ b/forms/source/xforms/datatyperepository.cxx
@@ -29,7 +29,6 @@
#include <functional>
#include <algorithm>
-#include <o3tl/compat_functional.hxx>
namespace xforms
{
@@ -183,7 +182,8 @@ namespace xforms
m_aRepository.begin(),
m_aRepository.end(),
aNames.getArray(),
- ::o3tl::select1st< Repository::value_type >()
+ [](::std::pair<const OUString, DataType>& rpair) -> OUString
+ { return rpair.first; }
);
return aNames;
}