From 7b4d44b2f5982430c6111e217c066994e3eb3223 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 9 May 2011 10:51:52 +0000 Subject: [PATCH] Fixed 2 Coverty reported issues. CID 11821: Uninitialized scalar field (UNINIT_CTOR) Non-static class member _traversalNumber is not initialized in this constructor nor in any functions that it calls. CID 11822: Uninitialized scalar field (UNINIT_CTOR) Non-static class member _traversalNumber is not initialized in this constructor nor in any functions that it calls. --- src/osgUtil/CullVisitor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgUtil/CullVisitor.cpp b/src/osgUtil/CullVisitor.cpp index b972aeed7..fcf444d3d 100644 --- a/src/osgUtil/CullVisitor.cpp +++ b/src/osgUtil/CullVisitor.cpp @@ -48,6 +48,7 @@ CullVisitor::CullVisitor(): NodeVisitor(CULL_VISITOR,TRAVERSE_ACTIVE_CHILDREN), _currentStateGraph(NULL), _currentRenderBin(NULL), + _traversalNumber(0), _computed_znear(FLT_MAX), _computed_zfar(-FLT_MAX), _currentReuseRenderLeafIndex(0), @@ -61,6 +62,7 @@ CullVisitor::CullVisitor(const CullVisitor& rhs): CullStack(rhs), _currentStateGraph(NULL), _currentRenderBin(NULL), + _traversalNumber(0), _computed_znear(FLT_MAX), _computed_zfar(-FLT_MAX), _currentReuseRenderLeafIndex(0),