diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-10-12 16:18:09 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-10-12 16:26:02 +0200 |
commit | b92cfa8829e6d26048f96cced12251db0f11c1ac (patch) | |
tree | c277324dd51ef666108c52970118e60a48d1a600 | |
parent | f99ebf4681ceb8803ea32f70835dafa368d74722 (diff) |
Clean up now unnecessary boost::bind() magic in RTFSdrImport::initShape()
Change-Id: Ie373098959f8b3e04fe955a08031a4221faab3cc
-rw-r--r-- | writerfilter/source/rtftok/rtfsdrimport.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
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<drawing::XShape>& o_xShape, // first, find the shape type int nType = -1; - std::vector< std::pair<OUString, OUString> >::const_iterator const iter( - std::find_if(rShape.aProperties.begin(), - rShape.aProperties.end(), - boost::bind(&OUString::equals, - boost::bind(&std::pair<OUString, OUString>::first, _1), - OUString("shapeType")))); + auto iter = std::find_if(rShape.aProperties.begin(), rShape.aProperties.end(), [](std::pair<OUString, OUString> aProperty) + { + return aProperty.first == "shapeType"; + }); if (iter == rShape.aProperties.end()) { |