Merge pull request #5190 from GilesBathgate/fix-uninitialized-member-k3tree

Fix uninitialized member in K3_tree.h
This commit is contained in:
Laurent Rineau 2021-09-29 11:47:01 +02:00
commit b85aaabdd8
1 changed files with 3 additions and 2 deletions

View File

@ -291,7 +291,7 @@ public:
Segment_3 segment; Segment_3 segment;
bool initialized; bool initialized;
public: public:
Objects_around_segment() : initialized(false) {} Objects_around_segment() : root_node(nullptr), initialized(false) {}
Objects_around_segment( const K3_tree& k, const Segment_3& s) : Objects_around_segment( const K3_tree& k, const Segment_3& s) :
root_node(k.root), segment(s), initialized(true) { root_node(k.root), segment(s), initialized(true) {
CGAL_NEF_TRACEN("Objects_around_segment: input segment: "<<segment); CGAL_NEF_TRACEN("Objects_around_segment: input segment: "<<segment);
@ -322,7 +322,8 @@ public:
CGAL_assertion_code( Segment_3 prev_segment;) CGAL_assertion_code( Segment_3 prev_segment;)
CGAL_assertion_code( bool first_segment;) CGAL_assertion_code( bool first_segment;)
public: public:
Iterator() : node() {} Iterator() : node()
{ CGAL_assertion_code( first_segment = false); }
Iterator( const Node_handle root, const Segment_3& s) { Iterator( const Node_handle root, const Segment_3& s) {
CGAL_assertion_code( first_segment = true); CGAL_assertion_code( first_segment = true);
S.push_front( Candidate( root, s)); S.push_front( Candidate( root, s));