diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-05-12 19:54:36 +0900 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-05-13 10:50:47 +0000 |
commit | 19ba9e08cab4ff75595f53b9689989495ff5f625 (patch) | |
tree | f57962ba2676494201a874777329ed949a3f7be8 /slideshow/test | |
parent | 595a109f8f5cd19cc72e1e44f2ae111427bb4330 (diff) |
slideshow: simplify code by replacing std::find_if by std::any_of/std::none_of
Change-Id: Ib8eec5074e82127e11f4fba2c0b143ab8cef3bcc
Reviewed-on: https://gerrit.libreoffice.org/15714
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'slideshow/test')
-rw-r--r-- | slideshow/test/testshape.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slideshow/test/testshape.cxx b/slideshow/test/testshape.cxx index 687a953007e4..46173d9dcc5a 100644 --- a/slideshow/test/testshape.cxx +++ b/slideshow/test/testshape.cxx @@ -127,13 +127,13 @@ private: } virtual bool removeViewLayer( const target::ViewLayerSharedPtr& rNewLayer ) { - if( std::find_if( + if( std::none_of( maViewLayers.begin(), maViewLayers.end(), boost::bind( std::equal_to< target::ViewLayerSharedPtr >(), boost::cref( rNewLayer ), boost::bind( o3tl::select1st<ViewVector::value_type>(), - _1 ))) == maViewLayers.end() ) + _1 ))) ) throw std::exception(); maViewLayers.erase( |