diff --git a/writerfilter/source/rtftok/rtfsdrimport.cxx b/writerfilter/source/rtftok/rtfsdrimport.cxx index 71050848f82c..fcb5b9c37b82 100644 --- a/writerfilter/source/rtftok/rtfsdrimport.cxx +++ b/writerfilter/source/rtftok/rtfsdrimport.cxx @@ -234,12 +234,10 @@ int RTFSdrImport::initShape(uno::Reference& o_xShape, // first, find the shape type int nType = -1; - std::vector< std::pair >::const_iterator const iter( - std::find_if(rShape.aProperties.begin(), - rShape.aProperties.end(), - boost::bind(&OUString::equals, - boost::bind(&std::pair::first, _1), - OUString("shapeType")))); + auto iter = std::find_if(rShape.aProperties.begin(), rShape.aProperties.end(), [](std::pair aProperty) + { + return aProperty.first == "shapeType"; + }); if (iter == rShape.aProperties.end()) {