Fixed Coverity reported issue.
CID 11826: Uninitialized scalar field (UNINIT_CTOR) Class member declaration for _recordHeightsAsAttributes.
This commit is contained in:
@@ -353,22 +353,20 @@ namespace PlaneIntersectorUtils
|
||||
struct TriangleIntersector
|
||||
{
|
||||
|
||||
osg::Plane _plane;
|
||||
osg::Polytope _polytope;
|
||||
bool _hit;
|
||||
osg::ref_ptr<osg::RefMatrix> _matrix;
|
||||
bool _recordHeightsAsAttributes;
|
||||
osg::ref_ptr<osg::EllipsoidModel> _em;
|
||||
bool _limitOneIntersection;
|
||||
osg::Plane _plane;
|
||||
osg::Polytope _polytope;
|
||||
bool _hit;
|
||||
osg::ref_ptr<osg::RefMatrix> _matrix;
|
||||
bool _recordHeightsAsAttributes;
|
||||
osg::ref_ptr<osg::EllipsoidModel> _em;
|
||||
bool _limitOneIntersection;
|
||||
|
||||
PolylineConnector _polylineConnector;
|
||||
|
||||
|
||||
TriangleIntersector()
|
||||
{
|
||||
_hit = false;
|
||||
_limitOneIntersection = false;
|
||||
}
|
||||
TriangleIntersector():
|
||||
_hit(false),
|
||||
_recordHeightsAsAttributes(false),
|
||||
_limitOneIntersection(false) {}
|
||||
|
||||
void set(const osg::Plane& plane, const osg::Polytope& polytope, osg::RefMatrix* matrix, bool recordHeightsAsAttributes, osg::EllipsoidModel* em)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user