Skip to content

Commit 178cf7a

Browse files
committed
Rename function parameter to avoid confusing parameters
1 parent 7c6a490 commit 178cf7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/output-pgsql.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
static double calculate_area(bool reproject_area,
4949
geom::geometry_t const &geom4326,
50-
geom::geometry_t const &geom)
50+
geom::geometry_t const &projected_geom)
5151
{
5252
static thread_local auto const proj3857 =
5353
reprojection::create_projection(3857);
@@ -56,7 +56,7 @@ static double calculate_area(bool reproject_area,
5656
auto const ogeom = geom::transform(geom4326, *proj3857);
5757
return geom::area(ogeom);
5858
}
59-
return geom::area(geom);
59+
return geom::area(projected_geom);
6060
}
6161

6262
void output_pgsql_t::pgsql_out_way(osmium::Way const &way, taglist_t *tags,

0 commit comments

Comments
 (0)