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:
Robert Osfield 2011-05-06 12:30:58 +00:00
parent bbfbc75279
commit de30bf3f1c

View File

@ -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
{