Fix "may be used uninitialized" warning

This commit is contained in:
Simon Giraudot 2020-03-24 16:05:44 +01:00
parent 63c1090c04
commit 929e1e4bce
1 changed files with 3 additions and 2 deletions

View File

@ -139,6 +139,7 @@ namespace CGAL {
template <class Construct_cartesian_const_iterator_d,class PointPointerIter> // was PointIter template <class Construct_cartesian_const_iterator_d,class PointPointerIter> // was PointIter
Kd_tree_rectangle(int, PointPointerIter begin, PointPointerIter end,const Construct_cartesian_const_iterator_d& construct_it) Kd_tree_rectangle(int, PointPointerIter begin, PointPointerIter end,const Construct_cartesian_const_iterator_d& construct_it)
: max_span_coord_(-1)
{ {
update_from_point_pointers<Construct_cartesian_const_iterator_d>(begin,end,construct_it); update_from_point_pointers<Construct_cartesian_const_iterator_d>(begin,end,construct_it);
} }
@ -289,7 +290,7 @@ namespace CGAL {
} }
Kd_tree_rectangle() Kd_tree_rectangle()
: coords_(0), dim(0) : coords_(0), dim(0), max_span_coord_(-1)
{ {
} }
@ -324,7 +325,7 @@ namespace CGAL {
template <class Construct_cartesian_const_iterator_d,class PointPointerIter> // was PointIter template <class Construct_cartesian_const_iterator_d,class PointPointerIter> // was PointIter
Kd_tree_rectangle(int d, PointPointerIter begin, PointPointerIter end,const Construct_cartesian_const_iterator_d& construct_it) Kd_tree_rectangle(int d, PointPointerIter begin, PointPointerIter end,const Construct_cartesian_const_iterator_d& construct_it)
: coords_(new FT[2*d]), dim(d) : coords_(new FT[2*d]), dim(d), max_span_coord_(-1)
{ {
update_from_point_pointers<Construct_cartesian_const_iterator_d>(begin,end,construct_it); update_from_point_pointers<Construct_cartesian_const_iterator_d>(begin,end,construct_it);
} }