Fixed Coverity reported issue.
CID 11828: Uninitialized scalar field (UNINIT_CTOR) Non-static class member distance is not initialized in this constructor nor in any functions that it calls. Non-static class member maxDistance is not initialized in this constructor nor in any functions that it calls. Non-static class member numIntersectionPoints is not initialized in this constructor nor in any functions that it calls. Non-static class member primitiveIndex is not initialized in this constructor nor in any functions that it calls.
This commit is contained in:
parent
bbfbc75279
commit
de30bf3f1c
@ -46,7 +46,11 @@ class OSGUTIL_EXPORT PolytopeIntersector : public Intersector
|
||||
|
||||
struct Intersection
|
||||
{
|
||||
Intersection() {}
|
||||
Intersection():
|
||||
distance(0.0),
|
||||
maxDistance(0.0),
|
||||
numIntersectionPoints(0),
|
||||
primitiveIndex(0) {}
|
||||
|
||||
bool operator < (const Intersection& rhs) const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user