summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-04-05 23:20:01 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-04-06 13:11:28 -0500
commit6a615262dc3381b2ab6f2290bccd7bbc2fef913f (patch)
tree9dcc4cd8859ee17426d60f989d7aee839e206613 /starmath
parent1c48041e731676d2d5b6fdb6176119cd58860a59 (diff)
coverity#708236: Unitialized scalar field
Change-Id: I4d87fb217504b0089df6d572cfa7c0d5426a897c
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/node.cxx17
1 files changed, 11 insertions, 6 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index a76e7c53bbd8..3d218811b715 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -125,13 +125,18 @@ void SmTmpDevice::SetFont(const Font &rNewFont)
SmNode::SmNode(SmNodeType eNodeType, const SmToken &rNodeToken)
+ : aNodeToken( rNodeToken )
+ , eType( eNodeType )
+ , eScaleMode( SCALE_NONE )
+ , eRectHorAlign( RHA_LEFT )
+ , nFlags( 0 )
+ , nAttributes( 0 )
+ , bIsPhantom( false )
+ , bIsDebug( false )
+ , bIsSelected( false )
+ , nAccIndex( -1 )
+ , aParentNode( NULL )
{
- eType = eNodeType;
- eScaleMode = SCALE_NONE;
- aNodeToken = rNodeToken;
- nAccIndex = -1;
- SetSelected(false);
- aParentNode = NULL;
}