From d054427f904c6a10a4c75343535d4fd8f3074115 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 6 May 2011 12:22:49 +0000 Subject: [PATCH] Fixed Coverity reported issue. CID 11836: Uninitialized scalar field (UNINIT_CTOR) Non-static class member _fullscreen is not initialized in this constructor nor in any functions that it calls. --- include/osgViewer/ViewerEventHandlers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osgViewer/ViewerEventHandlers b/include/osgViewer/ViewerEventHandlers index ea567702b..cd11b8133 100644 --- a/include/osgViewer/ViewerEventHandlers +++ b/include/osgViewer/ViewerEventHandlers @@ -524,7 +524,7 @@ protected: InteractiveImageHandler() {} InteractiveImageHandler(const InteractiveImageHandler&,const osg::CopyOp& = osg::CopyOp::SHALLOW_COPY): - osg::Object(), osgGA::GUIEventHandler(), osg::Drawable::CullCallback() {} + osg::Object(), osgGA::GUIEventHandler(), osg::Drawable::CullCallback(), _fullscreen(false) {} bool mousePosition(osgViewer::View* view, osg::NodeVisitor* nv, const osgGA::GUIEventAdapter& ea, int& x, int &y) const; bool computeIntersections(osgViewer::View* view, float x,float y, const osg::NodePath& nodePath, osgUtil::LineSegmentIntersector::Intersections& intersections,osg::Node::NodeMask traversalMask = 0xffffffff) const;