Skip to content

Commit

Permalink
Initialize variables in ob_tran projection
Browse files Browse the repository at this point in the history
  • Loading branch information
vissarion committed Apr 25, 2024
1 parent 1f8b6e0 commit 27c78c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/boost/geometry/srs/projections/proj/ob_tran.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ namespace projections
template <typename Params>
par_ob_tran(Params const& params, Parameters const& par)
: link(projections::detail::create_new(params, o_proj_parameters(params, par)))
, lamp(0)
, cphip(0)
, sphip(0)
{
if (! link.get())
BOOST_THROW_EXCEPTION( projection_exception(error_unknown_projection_id) );
Expand Down Expand Up @@ -231,6 +234,9 @@ namespace projections

par_ob_tran_static(StaticParameters const& params, Parameters const& par)
: link(params, o_proj_parameters(params, par))
, lamp(0)
, cphip(0)
, sphip(0)
{}

inline void fwd(T const& lp_lon, T const& lp_lat, T& xy_x, T& xy_y) const
Expand Down

0 comments on commit 27c78c9

Please sign in to comment.