Skip to content

Commit

Permalink
Sonarcloud: variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
ullingerc committed Oct 10, 2024
1 parent 0981909 commit 4cdebbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/GeoSparqlHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ std::pair<double, double> parseWktPoint(const std::string_view point) {

// Compute distance (in km) between two WKT points.
double wktDistImpl(GeoPoint point1, GeoPoint point2) {
auto p1_ = S2Point{S2LatLng::FromDegrees(point1.getLat(), point1.getLng())};
auto p2_ = S2Point{S2LatLng::FromDegrees(point2.getLat(), point2.getLng())};
return S2Earth::ToKm(S1Angle(p1_, p2_));
auto p1 = S2Point{S2LatLng::FromDegrees(point1.getLat(), point1.getLng())};
auto p2 = S2Point{S2LatLng::FromDegrees(point2.getLat(), point2.getLng())};
return S2Earth::ToKm(S1Angle(p1, p2));
}

} // namespace detail
Expand Down

0 comments on commit 4cdebbb

Please sign in to comment.