summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-05-04 09:33:59 +0900
committerCaolán McNamara <caolanm@redhat.com>2015-05-07 14:03:42 +0000
commit5a7c1bc635c7e0377bb743d91b0cf385397b7337 (patch)
tree8c640bf0b8c5a1cc0d749f5cf64fdd5e48945cf1 /basegfx
parentb4d7f8248496610a508b8edbcd57b9875e68bd81 (diff)
simplify code by replacing std::find_if with std::any_of/std::none_of
Change-Id: Ife6ab3544f73b1de60f5241c68466045161a4d88 Reviewed-on: https://gerrit.libreoffice.org/15615 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/range/b2dpolyrange.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basegfx/source/range/b2dpolyrange.cxx b/basegfx/source/range/b2dpolyrange.cxx
index 3722ca467bc3..3aec84dd6040 100644
--- a/basegfx/source/range/b2dpolyrange.cxx
+++ b/basegfx/source/range/b2dpolyrange.cxx
@@ -80,11 +80,11 @@ namespace basegfx
return false;
const std::vector<B2DRange>::const_iterator aEnd( maRanges.end() );
- return std::find_if( maRanges.begin(),
+ return std::any_of( maRanges.begin(),
aEnd,
boost::bind<bool>( boost::mem_fn( &B2DRange::overlaps ),
_1,
- boost::cref(rRange) ) ) != aEnd;
+ boost::cref(rRange) ) );
}
B2DPolyPolygon solveCrossovers() const