diff --git a/oox/inc/pch/precompiled_oox.hxx b/oox/inc/pch/precompiled_oox.hxx index bf9089b841eb..ab6de3c6752b 100644 --- a/oox/inc/pch/precompiled_oox.hxx +++ b/oox/inc/pch/precompiled_oox.hxx @@ -42,7 +42,6 @@ #include #include #include -#include #include #include #include diff --git a/oox/source/drawingml/diagram/diagram.cxx b/oox/source/drawingml/diagram/diagram.cxx index ef8b3896df03..04bda5b39423 100644 --- a/oox/source/drawingml/diagram/diagram.cxx +++ b/oox/source/drawingml/diagram/diagram.cxx @@ -18,7 +18,6 @@ */ #include -#include #include #include @@ -76,10 +75,10 @@ void DiagramData::dump() { OSL_TRACE("Dgm: DiagramData # of cnx: %zu", maConnections.size() ); std::for_each( maConnections.begin(), maConnections.end(), - boost::bind( &dgm::Connection::dump, _1 ) ); + [] (dgm::Connection & rConnection) { rConnection.dump(); } ); OSL_TRACE("Dgm: DiagramData # of pt: %zu", maPoints.size() ); std::for_each( maPoints.begin(), maPoints.end(), - boost::bind( &dgm::Point::dump, _1 ) ); + [] (dgm::Point & rPoint) { rPoint.dump(); } ); } void Diagram::setData( const DiagramDataPtr & pData) diff --git a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx index 1d0b78e82aeb..5e50ce7a00be 100644 --- a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx +++ b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx @@ -20,7 +20,6 @@ #include "diagramlayoutatoms.hxx" #include -#include #include #include @@ -86,7 +85,7 @@ void LayoutAtom::dump(int level) typeid(*this).name() ); const std::vector& pChildren=getChildren(); std::for_each( pChildren.begin(), pChildren.end(), - boost::bind( &LayoutAtom::dump, _1, level + 1 ) ); + [level] (LayoutAtomPtr const& pAtom) { pAtom->dump(level + 1); } ); } ForEachAtom::ForEachAtom(const Reference< XFastAttributeList >& xAttributes) @@ -584,9 +583,7 @@ void ShapeCreationVisitor::defaultVisit(LayoutAtom& rAtom) { const std::vector& pChildren=rAtom.getChildren(); std::for_each( pChildren.begin(), pChildren.end(), - boost::bind( &LayoutAtom::accept, - _1, - boost::ref(*this)) ); + [this] (LayoutAtomPtr const& pAtom) { pAtom->accept(*this); } ); } void ShapeCreationVisitor::visit(ConstraintAtom& /*rAtom*/) @@ -611,9 +608,7 @@ void ShapeCreationVisitor::visit(ForEachAtom& rAtom) // getPointsPresNameMap() ShallowPresNameVisitor aVisitor(mrDgm); std::for_each( pChildren.begin(), pChildren.end(), - boost::bind( &LayoutAtom::accept, - _1, - boost::ref(aVisitor)) ); + [&] (LayoutAtomPtr const& pAtom) { pAtom->accept(aVisitor); } ); nChildren = aVisitor.getCount(); } @@ -627,9 +622,7 @@ void ShapeCreationVisitor::visit(ForEachAtom& rAtom) { // TODO there is likely some conditions std::for_each( pChildren.begin(), pChildren.end(), - boost::bind( &LayoutAtom::accept, - _1, - boost::ref(*this)) ); + [this] (LayoutAtomPtr const& pAtom) { pAtom->accept(*this); } ); } // and restore idx @@ -697,9 +690,7 @@ void ShapeLayoutingVisitor::defaultVisit(LayoutAtom& rAtom) // visit all children, one of them needs to be the layout algorithm const std::vector& pChildren=rAtom.getChildren(); std::for_each( pChildren.begin(), pChildren.end(), - boost::bind( &LayoutAtom::accept, - _1, - boost::ref(*this)) ); + [this] (LayoutAtomPtr const& pAtom) { pAtom->accept(*this); } ); } void ShapeLayoutingVisitor::visit(ConstraintAtom& /*rAtom*/) @@ -738,9 +729,7 @@ void ShallowPresNameVisitor::defaultVisit(LayoutAtom& rAtom) // name set const std::vector& pChildren=rAtom.getChildren(); std::for_each( pChildren.begin(), pChildren.end(), - boost::bind( &LayoutAtom::accept, - _1, - boost::ref(*this)) ); + [this] (LayoutAtomPtr const& pAtom) { pAtom->accept(*this); } ); } void ShallowPresNameVisitor::visit(ConstraintAtom& /*rAtom*/)