mirror of https://github.com/CGAL/cgal
Merge pull request #5190 from GilesBathgate/fix-uninitialized-member-k3tree
Fix uninitialized member in K3_tree.h
This commit is contained in:
commit
b85aaabdd8
|
|
@ -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));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue