Skip to content

Commit

Permalink
Fix star.cpp clang regression again
Browse files Browse the repository at this point in the history
  • Loading branch information
bwdev01 committed Dec 23, 2024
1 parent ad62e7d commit da5c0ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/star.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1031,9 +1031,8 @@ bool GuideStar::AutoFind(const usImage& image, int extraEdgeAllowance, int searc
// We're repeating the find, so we're vulnerable to hot pixels and creation of unwanted duplicates
if (tmp.WasFound() && tmp.SNR >= minSNR)
{
bool duplicate =
std::find_if(foundStars.begin(), foundStars.end(),
[&tmp](const GuideStar& other) { return CloseToReference(tmp, other); }) != foundStars.end();
bool duplicate = std::find_if(foundStars.begin(), foundStars.end(), [&tmp](const GuideStar& other)
{ return CloseToReference(tmp, other); }) != foundStars.end();

if (!duplicate)
{
Expand Down

0 comments on commit da5c0ab

Please sign in to comment.