diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-19 15:17:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-19 15:31:59 +0000 |
commit | bfd0e9b7eaa3d24de239647aba7374529dd67572 (patch) | |
tree | f32b5fca5e550534e200811a9fd6c78f6bd9401e /starmath | |
parent | f37a8c6b8b16666a5fcf9689486a0e549e292aea (diff) |
coverity#738850 Uninitialized scalar field
Change-Id: I87cd5cee9df31d2ff847d4c41978ae2b422bb71d
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/node.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 6ffd0fb2531f..0e7d6a46e28a 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -2343,10 +2343,12 @@ SmTextNode::SmTextNode( SmNodeType eNodeType, const SmToken &rNodeToken, sal_uIn } -SmTextNode::SmTextNode( const SmToken &rNodeToken, sal_uInt16 nFontDescP ) : - SmVisibleNode(NTEXT, rNodeToken) +SmTextNode::SmTextNode( const SmToken &rNodeToken, sal_uInt16 nFontDescP ) + : SmVisibleNode(NTEXT, rNodeToken) + , nFontDesc(nFontDescP) + , nSelectionStart(0) + , nSelectionEnd(0) { - nFontDesc = nFontDescP; } |