summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-01-29 13:35:08 +0100
committerMichael Stahl <mstahl@redhat.com>2016-01-29 13:47:09 +0100
commitfb76228fe7a6984a240e137d4de083199f96aaf4 (patch)
tree97edd0ce8ac4bea79aad8e853fca750a55fed7a1 /unoxml
parentd54a7555ab38435d07bdb12e3d4b017d0753fa1f (diff)
unoxml: replace boost::bind with lambda
Change-Id: Id8d73fa9a93cd793dbce0d3f84ddde86860f7308
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/rdf/librdf_repository.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx
index 2c627134ac30..353f91a82708 100644
--- a/unoxml/source/rdf/librdf_repository.cxx
+++ b/unoxml/source/rdf/librdf_repository.cxx
@@ -30,7 +30,6 @@
#include <boost/noncopyable.hpp>
#include <boost/shared_array.hpp>
-#include <boost/bind.hpp>
#include <boost/optional.hpp>
#include <libxslt/security.h>
@@ -1253,8 +1252,8 @@ throw (uno::RuntimeException, rdf::RepositoryException, std::exception)
::std::vector< uno::Reference<rdf::XURI> > ret;
std::transform(m_NamedGraphs.begin(), m_NamedGraphs.end(),
std::back_inserter(ret),
- boost::bind(&rdf::XNamedGraph::getName,
- boost::bind(&NamedGraphMap_t::value_type::second, _1)));
+ [](std::pair<OUString, ::rtl::Reference<librdf_NamedGraph>> const& it)
+ { return it.second->getName(); });
return comphelper::containerToSequence(ret);
}
@@ -1585,7 +1584,8 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
predicates;
::std::transform(i_rPredicates.begin(), i_rPredicates.end(),
::std::back_inserter(predicates),
- ::boost::bind(&librdf_TypeConverter::extractResource_NoLock, _1));
+ [](uno::Reference<rdf::XURI> const& xURI)
+ { return librdf_TypeConverter::extractResource_NoLock(xURI); });
removeStatementRDFa(i_xObject); // not atomic with insertion?