Skip to content

Commit

Permalink
c++: fix variable shadowing warning in client code
Browse files Browse the repository at this point in the history
This should supersede zxing-cpp#837, achieving the same with just one changed line.
  • Loading branch information
axxel committed Sep 22, 2024
1 parent a875cb4 commit 93c25c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/Quadrilateral.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ bool HaveIntersectingBoundingBoxes(const Quadrilateral<PointT>& a, const Quadril
template <typename PointT>
Quadrilateral<PointT> Blend(const Quadrilateral<PointT>& a, const Quadrilateral<PointT>& b)
{
auto dist2First = [c = a[0]](auto a, auto b) { return distance(a, c) < distance(b, c); };
auto dist2First = [r = a[0]](auto s, auto t) { return distance(s, r) < distance(t, r); };
// rotate points such that the the two topLeft points are closest to each other
auto offset = std::min_element(b.begin(), b.end(), dist2First) - b.begin();

Expand Down

0 comments on commit 93c25c9

Please sign in to comment.